開発環境
- OS X Lion - Apple(OS)
- TextWrangler(Text Editor) (BBEditの無料、light版)
- 言語: C
- コンパイラ: UNIX ccコンパイラ (汎用UNIX)
『実践プログラミング 第3版』 (Steve Oualline (著)、 望月 康司 (監修) (翻訳)、 谷口 功 (翻訳)、 オライリー・ジャパン、1998年、ISBN978-4900900646) の4章(基本的な宣言および式)4.13(プログラミング実習)実習4-1を解いてみる。
実習4-1.
コード(TextWrangler)
#include <stdio.h> int main(){ printf("(架空)\n"); printf("名前: %s\n被保険者番号: %d\n生年月日: %d年%d月%d日\n", "kamimura",1234567890,2000,1,2); return (0); }
入出力結果(Terminal)
$ cc -g -o sample sample.c $ ./sample (架空) 名前: kamimura 被保険者番号: 1234567890 生年月日: 2000年1月2日 $
0 コメント:
コメントを投稿