ログイン

ProgrammingLanguage2017

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

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

講義資料等

1回目 ガイダンス 10/2

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

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

CompLang_LectureNotes2_rev.pdf(353)

  • テンプレート(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(266)
stone.c(193)
lsm.c(177)

4回目 条件分岐

CompLang_LectureNotes4v2.pdf(324)
janken_rev.c(172)
newton_sqrt.c(187)

5回目 繰り返し

CompLang_LectureNotes5.pdf(518)

6回目 配列

CompLang_LectureNotes6.pdf(399)
janken2.c(169)
janken2.in(171)

7回目 配列・関数2

CompLang_LectureNotes7.pdf(366)
CompLang_LectureNotes7.pdf(366)

8回目 基本型

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

9回目 ポインタその1

CompLang_LectureNotes9.pdf(249)
kuku.f90(140)
nn.f90(156)
pointer-plus.c(170)

10回目 ポインタその2

11回目 文字列

CompLang_LectureNotes11.pdf(208)
character-plus.f90(149)
character-plus.f90(149)

12回目 文字列とポインタ

13回目 構造体

14回目 ファイル入出力

CompLang_LectureNotes14.pdf(240)
file.c(144)
file.f90(146)