ログイン

ProgrammingLanguage2017

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

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

講義資料等

1回目 ガイダンス 10/2

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

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

CompLang_LectureNotes2_rev.pdf(339)

  • テンプレート(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(257)
stone.c(184)
lsm.c(169)

4回目 条件分岐

CompLang_LectureNotes4v2.pdf(313)
janken_rev.c(160)
newton_sqrt.c(177)

5回目 繰り返し

CompLang_LectureNotes5.pdf(511)

6回目 配列

CompLang_LectureNotes6.pdf(385)
janken2.c(158)
janken2.in(154)

7回目 配列・関数2

CompLang_LectureNotes7.pdf(356)
CompLang_LectureNotes7.pdf(356)

8回目 基本型

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

9回目 ポインタその1

CompLang_LectureNotes9.pdf(242)
kuku.f90(127)
nn.f90(140)
pointer-plus.c(161)

10回目 ポインタその2

11回目 文字列

CompLang_LectureNotes11.pdf(199)
character-plus.f90(136)
character-plus.f90(136)

12回目 文字列とポインタ

13回目 構造体

14回目 ファイル入出力

CompLang_LectureNotes14.pdf(231)
file.c(135)
file.f90(133)