ログイン

ProgrammingLanguage2017

計算機言語サポートページ

レポートは下記メールへお願いします。
ishii-at-cphys.s.kanazawa-u.ac.jp (-at-を@にしてください)

講義資料等

1回目 ガイダンス 10/2

  • C言語とFortran
  • 講義ノート(ガイダンス) CompLang_LectureNotes1.pdf(187)
  • 瞬間英作文ゲーム
  • レポート1回目
    • プログラムenglish3.cの内容を説明する。
    • プログラムの改良をおこなう。

2回目 環境設定, 復習1 10/16

CompLang_LectureNotes2_rev.pdf(323)

  • テンプレート(vimの例)

例) C言語
下記を$HOME/.vim/template/c.txt (emacsなら, $HOME/.emacs.d/template/c.txt)
として保存。

#include <stdio.h>
int main()
{
printf("hello world\n");
}

.vimrcに下記の様に書き込む。

autocmd BufNewFile *.c 0r $HOME/.vim/template/c.txt

emacsの場合, $HOME/.emacs.d/init.el
に書きの様に書き込む。

(auto-insert-mode)
(setq auto-insert-directory "~/.emacs.d/template/")
(define-auto-insert "\\.c$" "c.txt")

3回目 復習, 演算と型(2章), 繰り返し等

CompLang_LectureNotes3.pdf(246)
stone.c(168)
lsm.c(159)

4回目 条件分岐

CompLang_LectureNotes4v2.pdf(301)
janken_rev.c(145)
newton_sqrt.c(166)

5回目 繰り返し

CompLang_LectureNotes5.pdf(507)

6回目 配列

CompLang_LectureNotes6.pdf(374)
janken2.c(149)
janken2.in(137)

7回目 配列・関数2

CompLang_LectureNotes7.pdf(340)
CompLang_LectureNotes7.pdf(340)

8回目 基本型

レポート:教科書7章の演習問題

9回目 ポインタその1

CompLang_LectureNotes9.pdf(238)
kuku.f90(112)
nn.f90(124)
pointer-plus.c(150)

10回目 ポインタその2

11回目 文字列

CompLang_LectureNotes11.pdf(192)
character-plus.f90(120)
character-plus.f90(120)

12回目 文字列とポインタ

13回目 構造体

14回目 ファイル入出力

CompLang_LectureNotes14.pdf(223)
file.c(125)
file.f90(116)