£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裶²ó ¨¡ À©¸æ¹½Â¤¡§·«¤êÊÖ¤· ¨¡

Similar documents
£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裵²ó ¨¡ À©¸æ¹½Â¤¡§¾ò·ïʬ´ô ¨¡

£Ã¥×¥í¥°¥é¥ß¥ó¥°(2018) - Âè11²ó – ½ÉÂꣲ¤Î²òÀ⡤±é½¬£² –

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裱£²²ó ¡Ý½ÉÂꣲ¤Î²òÀ⡤±é½¬£²¡Ý

P03.ppt

C言語によるアルゴリズムとデータ構造

[1] #include<stdio.h> main() { printf("hello, world."); return 0; } (G1) int long int float ± ±

ex01.dvi

Prog1_6th

ex01.dvi

ex14.dvi

tuat1.dvi

/* do-while */ #include <stdio.h> #include <math.h> int main(void) double val1, val2, arith_mean, geo_mean; printf( \n ); do printf( ); scanf( %lf, &v

新・明解C言語 ポインタ完全攻略

新版明解C言語 実践編

II ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D

‚æ4›ñ

2004

r07.dvi

ohp07.dvi

18 C ( ) hello world.c 1 #include <stdio.h> 2 3 main() 4 { 5 printf("hello World\n"); 6 } [ ] [ ] #include <stdio.h> % cc hello_world.c %./a.o

新・明解C言語 実践編

DVIOUT

Microsoft Word - no15.docx

I ASCII ( ) NUL 16 DLE SP P p 1 SOH 17 DC1! 1 A Q a q STX 2 18 DC2 " 2 B R b

P02.ppt

fuga scanf("%lf%*c",&fuga); 改行文字を読み捨てる 10 進数の整数 おまじない取り込んだ値を代入する変数 scanf( %d%*c,&hoge); キーボードから取り込め という命令 1: scanf 1 1: int double scanf %d %lf printf

1.1 1 C IIA $ cd comp3a %endminipage ~/comp3a mkdir $ mkdir comp3a $ cd comp3a C.c Emacs Cntrol x Control s 2 Emacs Control-x Control-f Control-

kiso2-06.key

double float

II 3 yacc (2) 2005 : Yacc 0 ~nakai/ipp2 1 C main main 1 NULL NULL for 2 (a) Yacc 2 (b) 2 3 y

file"a" file"b" fp = fopen("a", "r"); while(fgets(line, BUFSIZ, fp)) {... fclose(fp); fp = fopen("b", "r"); while(fgets(line, BUFSIZ, fp)) {... fclose

「住宅に関する防犯上の指針」案

2 P.S.P.T. P.S.P.T. wiki 26

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

I. Backus-Naur BNF : N N 0 N N N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) (2) (3) (4) II. 0(0 101)* (

Microsoft Word - C.....u.K...doc

£Ã¥×¥í¥°¥é¥ß¥ó¥°(2018) - Âè10²ó – ¿¹à¼°¤Îɾ²Á¡§¥¢¥ë¥´¥ê¥º¥à¤Î²þÁ± –

slide5.pptx


Taro13-第6章(まとめ).PDF

PowerPoint プレゼンテーション

土壌環境行政の最新動向(環境省 水・大気環境局土壌環境課)

syuryoku


資料4-1 一時預かり事業について

Taro-ファイル処理(公開版).jtd

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B

I J

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.

4 分岐処理と繰返し処理 ( 教科書 P.32) プログラムの基本的処理は三つある. (1) 順次処理 : 上から下に順番に処理する ぶんきそろ (2) 分岐処理 : 条件が揃えば, 処理する はんぷく (3) 反復処理 : 条件が揃うまで処理を繰り返す 全てのプログラムは (1) から (3) の

Java演習(4) -- 変数と型 --

:30 12:00 I. I VI II. III. IV. a d V. VI

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *

kiso2-09.key

char int float double の変数型はそれぞれ 文字あるいは小さな整数 整数 実数 より精度の高い ( 数値のより大きい より小さい ) 実数 を扱う時に用いる 備考 : 基本型の説明に示した 浮動小数点 とは数値を指数表現で表す方法である 例えば は指数表現で 3 書く

新版明解C言語入門編

1 ( ) 1.1 (convert.sh) (18GHz 26GHz) C (convert.c, convert1.c) mesure-ryudai convert.sh #!/bin/sh # file1 file1= ls -1 $1 # file1 data for data in $fi

DKA ( 1) 1 n i=1 α i c n 1 = 0 ( 1) 2 n i 1 <i 2 α i1 α i2 c n 2 = 0 ( 1) 3 n i 1 <i 2 <i 3 α i1 α i2 α i3 c n 3 = 0. ( 1) n 1 n i 1 <i 2 < <i

lexex.dvi

Cプログラミング1(再) 第2回

programmingII2019-v01

j x j j j + 1 l j l j = x j+1 x j, n x n x 1 = n 1 l j j=1 H j j + 1 l j l j E

Microsoft PowerPoint - CproNt02.ppt [互換モード]

PowerPoint Presentation

C言語入門

Microsoft PowerPoint - lec4.ppt

8 if switch for while do while 2

ohp03.dvi

untitled

P05.ppt

main

ランダムウォークの確率の漸化式と初期条件

1 4 2 EP) (EP) (EP)

初歩のC言語ターミナル_2014_May.pages

:30 12:00 I. I VI II. III. IV. a d V. VI

(K&R 2.9) ~, &,, >>, << 2. (K&R 5.7) 3. (K&R 5.9) 4. (K&R 5.10) (argc argv atoi(), atof() ) 5. (K&R 7.5) (K&R 7.6) - FILE, stdin, stdout, std

Informatics 2014

Microsoft Word - Cプログラミング演習(12)


Microsoft PowerPoint - C言語の復習(配布用).ppt [互換モード]

物質工学科 田中晋

ex12.dvi

プログラミング基礎

橡Pro PDF

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧)

PG13-6S

<4D F736F F D2081A193B98BE EA97708CFB8DC08B4B92E D8D878CFB8DC0817A B4B816A81798A6D92E894C5817A2E646F63>

( )


nenkin.PDF

untitled


untitled

橡okamura-ppt.PDF

2


1

夏目小兵衛直克

-1-

B演習(言語処理系演習)第一回

Transcription:

(2018) 2018 5 24

( ) while ( ) do while ( ); for ( ; ; )

while int i = 0; while (i < 100) { printf("i = %3d\n", i); i++;

while int i = 0; i while (i < 100) { printf("i = %3d\n", i); i++;

while int i = 0; while (i < 100) { printf("i = %3d\n", i); i++; 2 0<100

while int i = 0; while (i < 100) { printf("i = %3d\n", i); i++; 2 3

while int i = 0; while (i < 100) { printf("i = %3d\n", i); i++; i i=1 2 3 4 i 1

while int i = 0; while (i < 100) { printf("i = %3d\n", i); i++; 2 3 4 i 1 2 4

while int i = 0; while (i < 100) { printf("i = %3d\n", i); i++; 2 3 4 i 1 1<100 2 4

while int i = 0; while (i < 100) { printf("i = %3d\n", i); i++; 2 3 4 i 1 2 4

while int i = 0; while (i < 100) { printf("i = %3d\n", i); i++; i i=2 2 3 4 i 1 2 4

while int i = 0; while (i < 100) { 100>=100 printf("i = %3d\n", i); i++; 2 3 4 i 1 2 4 2

ex15c int main(int argc, char **argv) { int i = 10, imax; printf("imax = "); scanf("%d", &imax); while (i <= imax) { printf("i = %3d\t i**2 = %5d\n", i, i * i); i++; return 0;

ex15c int main(int argc, char **argv) { int i = 10, imax; printf("imax = "); scanf("%d", &imax); while (i <= imax) { printf("i = %3d\t i**2 = %5d\n", i, i * i); i++; gcc ex15c -o ex15 -lm -Wall return 0;

do while int i = 0; do { printf("i = %3d\n", i); i++; while (i < 100 ) ;

do while int i = 0; i do { printf("i = %3d\n", i); i++; while (i < 100 ) ;

do while int i = 0; do { printf("i = %3d\n", i); i++; while (i < 100 ) ; 2

do while int i = 0; do { printf("i = %3d\n", i); i++; i i=1 while (i < 100 ) ; 2 3 i 1

do while int i = 0; do { printf("i = %3d\n", i); i++; while (i < 100 ) ; 2 3 i 1 4 1<100

do while int i = 0; do { printf("i = %3d\n", i); i++; while (i < 100 ) ; 2 3 i 1 4 2 4

do while int i = 0; do { printf("i = %3d\n", i); i++; while (i < 100 ) ; 2 3 i 1 4 2<100 2 4

do while int i = 0; do { printf("i = %3d\n", i); i++; while (i < 100 ) ; 2 3 i 1 4 2 4

do while int i = 0; do { printf("i = %3d\n", i); i++; i i=3 while (i < 100 ) ; 2 3 i 1 4 2 4

do while int i = 0; do { printf("i = %3d\n", i); i++; while (i < 100 ) ; 100>=100 2 3 i 1 4 2 4 4

ex16c int main(int argc, char **argv) { int i = 10, imax; printf("imax = "); scanf("%d", &imax); do { printf("i = %3d\t i**2 = %5d\n", i, i * i); i++; while (i <= imax); return 0;

ex16c int main(int argc, char **argv) { int i = 10, imax; printf("imax = "); scanf("%d", &imax); do { printf("i = %3d\t i**2 = %5d\n", i, i * i); i++; while (i <= imax); gcc ex16c -o ex16 -lm -Wall return 0;

for for (i = 0; i < 100; i++) { printf("i = %3d\n", i) ;

for for (i = 0; i < 100; i++) { printf("i = %3d\n", i) ; i

for 0<100 for (i = 0; i < 100; i++) { printf("i = %3d\n", i) ; 2

for for (i = 0; i < 100; i++) { printf("i = %3d\n", i) ; 2 3

for for (i = 0; i < 100; i++) { i i=1 printf("i = %3d\n", i) ; 2 3 4 i (1 )

for for (i = 0; i < 100; i++) { printf("i = %3d\n", i) ; 2 3 4 i (1 ) 2 4

for 1<100 for (i = 0; i < 100; i++) { printf("i = %3d\n", i) ; 2 3 4 i (1 ) 2 4

for for (i = 0; i < 100; i++) { printf("i = %3d\n", i) ; 2 3 4 i (1 ) 2 4

for for (i = 0; i < 100; i++) { i i=2 printf("i = %3d\n", i) ; 2 3 4 i (1 ) 2 4

for 100>=100 for (i = 0; i < 100; i++) { printf("i = %3d\n", i) ; 2 3 4 i (1 ) 2 4 2

ex17c int main(int argc, char **argv) { int i, imax; printf("imax = "); scanf("%d", &imax); for (i = 10; i <= imax; i++) { printf("i = %3d\t i**2 = %5d\n", i, i * i); return 0;

ex17c int main(int argc, char **argv) { int i, imax; printf("imax = "); scanf("%d", &imax); for (i = 10; i <= imax; i++) { printf("i = %3d\t i**2 = %5d\n", i, i * i); gcc ex17c -o ex17 -lm -Wall return 0;

ex18c int main(int argc, char **argv) { int i, j, n; for (i = 0; i < 16; i++) { for (j = 0; j < 8; j++) { n = 8 * i + j; printf("%3d(x%02x) ", n, n); printf("\n"); return 0;

return break switch continue goto

ex19c int main(int argc, char **argv) { char c; while (1) { printf("input a character "); scanf(" %c", &c); if (c == q c == Q ) break; printf("%c\n", c); printf("now quit\n"); return 0;

x ±1 ++x x++ - -x x- -

x ±1 ++x x++ - -x x- - ++ 1 - - 1 ++x - -x x++ x- -

==!= >= <= > <

2 p, q 2 x 2 + px + q = 0 1 2 2 15 2 p ) 1Y17B023 p = 23 3 q q = 10 10 12 4 "Imaginary roots"

$ /hw2018-1 p, q = 101, 10 1010000e+02, 1000000e+01 Solution1: xp = -00991071507656756, xm = -100900892849234 Solution2: xp = -00991071507656722, xm = -100900892849234 $ /hw2018-1 p, q = 101, 1e-12 1010000e+02, 1000000e-12 Solution1: xp = -7105427357601e-15, xm = -101 Solution2: xp = -99009900990099e-15, xm = -101 $ /hw2018-1 p, q = 101,2600 1010000e+02, 2600000e+03 Imaginary roots

Waseda-net Web matuda-namio@aoniwasedajp 1Y14B999 1 5 30 20:00