ログイン

ProgrammingLanguage2017

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

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

講義資料等

1回目 ガイダンス 10/2

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

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

CompLang_LectureNotes2_rev.pdf(329)

  • テンプレート(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(249)
stone.c(174)
lsm.c(163)

4回目 条件分岐

CompLang_LectureNotes4v2.pdf(304)
janken_rev.c(151)
newton_sqrt.c(169)

5回目 繰り返し

CompLang_LectureNotes5.pdf(509)

6回目 配列

CompLang_LectureNotes6.pdf(380)
janken2.c(152)
janken2.in(143)

7回目 配列・関数2

CompLang_LectureNotes7.pdf(347)
CompLang_LectureNotes7.pdf(347)

8回目 基本型

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

9回目 ポインタその1

CompLang_LectureNotes9.pdf(240)
kuku.f90(116)
nn.f90(128)
pointer-plus.c(153)

10回目 ポインタその2

11回目 文字列

CompLang_LectureNotes11.pdf(195)
character-plus.f90(125)
character-plus.f90(125)

12回目 文字列とポインタ

13回目 構造体

14回目 ファイル入出力

CompLang_LectureNotes14.pdf(226)
file.c(129)
file.f90(122)