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

Size: px
Start display at page:

Download "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"

Transcription

1 I ASCII ( ) NUL 16 DLE SP P p 1 SOH 17 DC1! 1 A Q a q STX 18 DC " B R b r 3 ETX 19 DC3 # 3 C S c s 4 EOT 0 DC4 $ 4 D T d t 5 ENQ 1 NAK % 5 E U e u 6 ACK SYN & 6 F V f v BEL 7 3 ETB 7 G W g w BS 8 4 CAN ( 8 H X h x HT EM ) 9 I Y i y 1 ASCII LF 10 6 SUB * : J Z j z VT 11 7 ESC + ; K [ k { FF CR SO SI FS GS RS US , -. / < = >? L M N O \ ] ^ _ l m n o } ~ DEL ( ) ASCII ( ) ASCII ASCII ASCII ( ) 3 SP 1 (Space) 1 SP ( ) ISO 646-US ISO 646-US ISO 646-JP JIS X 001 Roman 9 16 ISO 646-US (ASCII ) ISO 646-JP (JIS X 001 Roman) ISO 646-JP (JIS X 001 Roman) 9 ( ) 16 ( ) \ ( ) ~ ( ) C 1 4 1

2 NUL Null C 3 \0 C BEL Bell \a BS Backspace \b ( )1 HT Horizontal Tabulation \t ( ) ( 8 ) LF Line feed 4 \n C 1 VT Vertical Tabulation \v ( ) FF Form Feed 5 \f CR Carriage Return \r C.1 printf 1 byte ASCII 1 byte (= 8 bit) printf printf %c ( ) printf ascii.c #include <stdio.h> 3 int main() 4 { 5 int c; 6 7 for (c = 3; c <= 16; c++) { 8 printf("%3d=%c", c, c); 9 if (c%8 == 7 c == 16) 10 printf("\n"); 11 else 1 printf(" "); 13 } 14 return 0; 15 } ascii.c 8 printf %3d %c c %3d c ( ) %c c SP ( ) 4 New Line 5 4

3 1 s1609h017% cc ascii.c -o ascii s1609h017%./ascii 3= 33=! 34=" 35=# 36=$ 37=% 38=& 39= 40=( 41=) 4=* 43=+ 44=, 45=- 46=. 47=/ 48=0 49=1 50= 51=3 5=4 53=5 54=6 55=7 56=8 57=9 58=: 59=; 60=< 61== 6=> 63=? 65=A 66=B 67=C 68=D 69=E 70=F 71=G 7=H 73=I 74=J 75=K 76=L 77=M 78=N 79=O 80=P 81=Q 8=R 83=S 84=T 85=U 86=V 87=W 88=X 89=Y 90=Z 91=[ 9=\ 93=] 94=^ 95=_ 96= 97=a 98=b 99=c 100=d 101=e 10=f 103=g 104=h 105=i 106=j 107=k 108=l 109=m 110=n 111=o 11=p 113=q 114=r 115=s 116=t 117=u 118=v 119=w 10=x 11=y 1=z 13={ 14= 15=} 16=~ s1609h017% ascii.c. C ( ) (int ) C A A (ASCII 65) 4 C \n ( ) \ \ ( ) \\ ASCII ascii.c ascii.c 1 #include <stdio.h> 3 int main() 4 { 5 int c; 6 7 for (c = ; c <= ~ ; c++) 8 printf("%3d=%c%c", c, c, (c%8 == 7 c == ~ )? \n : ); 9 return 0; 10 }.3 char ASCII 0 17 C char char 1 byte (= 8 4 3

4 bit) char char int.4 char char int C char char ch; 1 char 1 char ( ) int ascii.c ascii.c 5 int c; char c; c ( ) char printf char char int int printf.5 scanf 1 byte scanf 1 byte %c ( ) (scanf ) %c char (char ) chars.c 9 scanf char ( ) 5 char c; int c; 1 #include <stdio.h> 3 int main() 4 { 5 char c; 6 7 printf(" = "); 8 do { 9 scanf("%c", &c); 10 printf("%3d=%c\n", c, c); 11 } while (c!= \n ); 1 return 0; 13 } chars.c 6 C 7 C

5 s1609h017%./chars = This is a test. 84=T 104=h 105=i 115=s 3= 105=i 115=s 3= 97=a 3= 116=t 101=e 115=s 116=t 46=. 10= chars.c s1609h017% chars.c (Enter) chars 7 printf = (Enter) 9 scanf This is a test. (Enter) T 16 scanf T c main scanf scanf %d %f %lf () ( ) %c 1 %c " %c" scanf ( ) 3 othello09.c othello08.c (4 11 ) 1 8 a h * othello09.c 1 #include <stdio.h> 3 #define BLACK (1) /* */ 4 #define WHITE (-BLACK) /* */ 5 #define NONE (0) /* */ 4 5

6 6 #define OPPONENT(t) (-(t)) /* t */ 7 #define BOARD_SIZE (8) /* */ 8 9 /* */ 10 void reset(int b[][board_size]) 11 { 1 int x, y; /* */ 15 for (x = 0; x < BOARD_SIZE; x++) 16 for (y = 0; y < BOARD_SIZE; y++) 17 b[x][y] = NONE; 18 /* 4 */ 19 b[board_size/-1][board_size/-1] = WHITE; 0 b[board_size/-1][board_size/] = BLACK; 1 b[board_size/][board_size/-1] = BLACK; b[board_size/][board_size/] = WHITE; 3 } 4 5 /* */ 6 void showboard(int b[][board_size]) 7 { 8 int x, y; 9 30 /* */ 31 for (x = 0; x < BOARD_SIZE; x++) *3 printf(" %c", x + a ); 33 printf("\n"); 34 /* */ 35 for (y = 0; y < BOARD_SIZE; y++) { *36 printf("%c", y + 1 ); 37 for (x = 0; x < BOARD_SIZE; x++) { 38 if (b[x][y] == BLACK) 39 printf(" "); 40 else if (b[x][y] == WHITE) 41 printf(" "); 4 43 else printf(" "); } printf("\n"); 46 } 47 } /* */ 50 void inputmove(int b[][board_size], int turn) 51 { *5 char ch; 53 int x, y; while (1) { /* */ 57 *58 do { ch = ; 59 printf(" = "); *60 scanf(" %c", &ch); *61 x = ch - a ; *6 } while (x < 0 BOARD_SIZE <= x); 63 /* */ 64 *65 do { ch = ; 66 printf(" = "); *67 scanf(" %c", &ch); *68 y = ch - 1 ; 4 6

7 *69 } while (y < 0 BOARD_SIZE <= y); *70 if (b[x][y] == NONE) 71 break; 7 printf(" \n"); } /* */ *75 b[x][y] = turn; 76 } int main() 79 { 80 /* (BLACK/WHITE/NONE) */ 81 int board[board_size][board_size]; 8 /* */ 83 int turn = BLACK; reset(board); while (1) { showboard(board); 88 inputmove(board, turn); 89 turn = OPPONENT(turn); 90 } 91 /* */ 9 return 0; 93 } ASCII a h 1 8 s1609h017%./othello09 = c = = x = g = 4 othello09 4 7

8 = d = 0 = 5 = d = 7 = ^C s1609h017% othello09.c 8 mprog1 othello09.c mprog1 Prog othello09.c othello10.c othello10.c inputmove 1 a h 1 8 d4 ( ) char ch1 ch scanf 9 scanf(" %c %c", &ch1, &ch); scanf %c 8 othello08.c 9 scanf(" %c", &ch1); scanf(" %c", &ch); 4 8

9 s1609h017%./othello10 = d4 = d0 = d1 = x7 = g7 = ^C s1609h017% othello othello10.c othello11.c othello11.c inputmove s1609h017%./othello11 othello11 4 9

10 = d = g5 = 9e = 8e = ^C s1609h017% othello11.c getchar 1 q I

11 : othello08.c othello08.c 1 #include <stdio.h> 3 #define BLACK (1) /* */ 4 #define WHITE (-BLACK) /* */ 5 #define NONE (0) /* */ 6 #define OPPONENT(t) (-(t)) /* t */ 7 #define BOARD_SIZE (8) /* */ 8 9 /* */ 10 void reset(int b[][board_size]) 11 { 1 int x, y; /* */ 15 for (x = 0; x < BOARD_SIZE; x++) 16 for (y = 0; y < BOARD_SIZE; y++) 17 b[x][y] = NONE; 18 /* 4 */ 19 b[board_size/-1][board_size/-1] = WHITE; 0 b[board_size/-1][board_size/] = BLACK; 1 b[board_size/][board_size/-1] = BLACK; b[board_size/][board_size/] = WHITE; 3 } 4 5 /* */ 6 void showboard(int b[][board_size]) 7 { 8 int x, y; 9 30 /* */ 31 for (x = 0; x < BOARD_SIZE; x++) 3 printf(" %d", x+1); 33 printf("\n"); 34 /* */ 35 for (y = 0; y < BOARD_SIZE; y++) { 36 printf("%d", y+1); 37 for (x = 0; x < BOARD_SIZE; x++) { 38 if (b[x][y] == BLACK) 39 printf(" "); 40 else if (b[x][y] == WHITE) 41 printf(" "); 4 else 43 printf(" "); 44 } 45 printf("\n"); 46 } 47 } /* */ 50 void inputmove(int b[][board_size], int turn) 51 { 5 int x, y; while (1) { 55 /* */ 56 do { 4 11

12 57 x = 0; 58 printf(" = "); 59 scanf("%d", &x); 60 } while (x <= 0 BOARD_SIZE < x); 61 /* */ 6 do { 63 y = 0; 64 printf(" = "); 65 scanf("%d", &y); 66 } while (y <= 0 BOARD_SIZE < y); 67 if (b[x-1][y-1] == NONE) 68 break; 69 printf(" \n"); 70 } 71 /* */ 7 b[x-1][y-1] = turn; 73 } int main() 76 { 77 /* (BLACK/WHITE/NONE) */ 78 int board[board_size][board_size]; 79 /* */ 80 int turn = BLACK; 81 8 reset(board); 83 while (1) { 84 showboard(board); 85 inputmove(board, turn); 86 turn = OPPONENT(turn); 87 } 88 /* */ 89 return 0; 90 } 4 1

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

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 II 8 2003 11 12 1 6 ( ) 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 Daisuke 8 =>. 73 Daisuke 35 Hiroshi 64 Ichiro 87 Junko

More information

10

10 2: http://www7.bpe.es.osaka-u.ac.jp/~kota/classes/jse.html kota@fbs.osaka-u.ac.jp 10 : 0 1 2 n 2 n 0 1 1 0 1 0 0 1 (2) = 105 1 = 8 1 2 8 = 256 0 9 105 i 106 j 256 2 1 #include int main(void)

More information

Bar-Code_GUIDE

Bar-Code_GUIDE JPN 1 2 1 1-1 1-2 2 2-1 2-2 2-3 1 2 3 4 5 6 7 8 9 10 11 1 2 3 4 5 6 7 8 9 10 11 12 13 1 2 3 4 5 6 7 8 9 10 11 ' K ' X 5 T 3 O 0 1 2 3 4 K : N 01 23 1 2 3 4 5 6 7 8 9 10

More information

バーコードプリントガイド

バーコードプリントガイド CR-HIT/HIW/MEO/MEQ/MER/MET JPN 1 2 1 1-1 1-2 2 2-1 2-2 2-3 1 2 3 4 5 6 7 8 9 10 11 1 2 3 4 5 6 7 8 9 10 11 12 13 1 2 3 4 5 6 7 8 9 10 11 ' K ' X 5 T 3 O 0 1 2 3 4 K : N 01

More information

¥ƥ­¥¹¥ȥ¨¥ǥ£¥¿¤λȤ¤˽

¥ƥ­¥¹¥ȥ¨¥ǥ£¥¿¤λȤ¤˽ : 2010 2 14 1 MS Word.doc (MS Word 2003 ).docx (MS Word 2007 ) Word Windows.txt MS Word Word Word Word Excel Word 1 Word Word Word MS Word MS Word MS Word Word Windows MS Word MS Word Word Windows.txt

More information

PPS40511.PDF

PPS40511.PDF IBM Infoprint 1000J IBM PAGES ( CODE128 / QR CODE / PDF417 ) Rev. 1.1 2004/06/17-1 - 1. (ESX40) 3 2. ESX42 7 Code128 8 13 PDF417 15 IBM Infoprint 1000J (IP1316J, IP1336J, IP1356J) IBM PAGES IBM PC CODE128,

More information

基礎情報処理 I (文字型)

基礎情報処理 I (文字型) プログラミング 1 ( 文字型 ) program character1; a,b,c: char; writeln('1 文字づつ3 文字入力してください :'); readln(a); readln(b); readln(c); write(a); write(b); write(c); writeln; a,b,c:char; a:='a'; b:='b'; c:='c'; write(a);

More information

PR300 電力モニタ 通信インタフェース (RS-485通信,Ethernet通信)

PR300 電力モニタ 通信インタフェース (RS-485通信,Ethernet通信) User s Manual 1 2 3 1 2 3 Ethernet 1 2 3 4 Ethernet (ST-NO) (PCLK1) (PCLK2) (COMM) (M ASC) (M RTU) (M TCP) (RS-485) (B-RT) (PR201) (NONE) (PRI) (EVEN) (ODD) (STP) (DLN) (RS-485) (Ethernet) (IP-1)

More information

printf("5つの整数を入力して下さい \n"); /* データ入力 */ for( /*** 02 ***/ ){ printf("%dつ目の入力 :",i+1); scanf("%d", /*** 03 ***/ ); sum=dat[0]; /* 合計値の初期設定 */ n_max= 0

printf(5つの整数を入力して下さい \n); /* データ入力 */ for( /*** 02 ***/ ){ printf(%dつ目の入力 :,i+1); scanf(%d, /*** 03 ***/ ); sum=dat[0]; /* 合計値の初期設定 */ n_max= 0 電子情報競技会ソフトウェア課題 1 Question_1 プロジェクト内のソースプログラムの /*** XX ***/ に適当な語句 式等を入れ プログラムを完成させなさい ここで 同じ番号の /*** XX ***/ には同じ語句 式等が入る /*** XX ***/ の部分以外は書き換えてはならないが 別のソースファイルにてテストしてもかまわない [ プログラムの説明 ] 1. 処理内容 2 桁の整数データ

More information

untitled

untitled 2004845 PKIUTF8String Part1: UTF8String UTF8String PKI UTF8String UTF8String 2 (1) ( ) A, ü, [ ] [ ] ASCII JIS X2013 Unicode(ISO 10646) ( )( ) Unicode A U+0041 U+007F 3 (2) u ü ( )( ) ( )(

More information

データロジックスキャニング株式会社

データロジックスキャニング株式会社 QuickScan L Bar Code Scanner 7-13-5 DK 2 QuickScanL ...5...5 RS232...5...6 USB...6...7 LED...7...8...8...8...9...9...10...10 ID... 11 Prefix/Suffix... 11 Global Prefix/Suffix...12 RS-232...13...13...14...14...14...15...15...16...17

More information

H02_ROM_ indd

H02_ROM_ indd ESC/P ESC/P IBM 5557-H02 ESC/P ESC/P IBM 5557-H02 ESC/P VP5074 IBM 5579/5577/5573 ESC/P ESC/P ESC/P ESC/P IBM 5557-H02 ESC/P ESC/P ESC/P / CD ESC/P ESC/P 289 IBM 5557-H02 / ESC R ESC t ESC X ESC / ESC

More information

H02_ROM_ indd

H02_ROM_ indd CD E CD 16 1 Nul 00 2 Bel 07 3 BS 08 4 HT 09 5 LF 0A 6 VT 0B 7 FF 0C 8 CR 0D 9 1 DC1 11 10 3 DC3 13 11 CAN 18 12 SP 20 13 ESC 1 n 1 n 2 1B 25 31 n 1 n 2 14 ESC 2 n 1 n 2 1B 25 32 n 1 n 2 15 ESC 3 n 1 n

More information

DS-3300 プログラミングマニュアル 設定項目 ページ 初期値設定マップ 1-2 ファームウェアバージョン情報 2 システム設定 3 読取機能設定 4 インターフェース設定 5 バーコード規格別読取設定 6-7 チェックデジット設定 8 読取桁数設定 9 キャラクタ付加設定 10 数字バーコード

DS-3300 プログラミングマニュアル 設定項目 ページ 初期値設定マップ 1-2 ファームウェアバージョン情報 2 システム設定 3 読取機能設定 4 インターフェース設定 5 バーコード規格別読取設定 6-7 チェックデジット設定 8 読取桁数設定 9 キャラクタ付加設定 10 数字バーコード DS-3300 プログラミングマニュアル 設定項目 ページ 初期値設定マップ 1-2 ファームウェアバージョン情報 2 システム設定 3 読取機能設定 4 インターフェース設定 5 バーコード規格別読取設定 6-7 チェックデジット設定 8 読取桁数設定 9 キャラクタ付加設定 10 数字バーコード 11 シンボルテーブル 12 アスキーテーブル 13 ファンクションキーテーブル 14 フルアスキーテーブル

More information

MS240 JISⅡ半角カナ文字データを含むカード読み取り設定例

MS240 JISⅡ半角カナ文字データを含むカード読み取り設定例 MS240 磁気ストライプストライプカードリーカードリーダ JISⅡ 半角カナカナ文字文字データデータを含むカードカード読み取り設定例 ユニテック ジャパン株式会社 Ver1.0 目次 1. JIS-II 半角カタカナをデータに含む磁気カードについて...3 1.1. JIS-II カード規格とは...3 1.2. 半角カタカナデータを含む JIS-II コードの仕組み...3 1.3 半角カタカナデータを含む

More information

4 Mule(Emacs)

4 Mule(Emacs) 文字コードとは 文字コードとコード系 character code コンピュータ内部での表現の際あるいはコンピュータ間の通信の際には 文字や記号はある一定のビットパターン (bit pattern, 0,1の列 ) で表されている このような 文字とビットパターンの対応を文字コードという 広く使われている文字コードと文字コード系 ( 文字コードをどのように使うかも含めて規定したコード体系のこと )

More information

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 1. 1.1. 1.2. 1 PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 2. 2.1. 2 1 2 C a b N: PC BC c 3C ac b 3 4 a F7 b Y c 6 5 a ctrl+f5) 4 2.2. main 2.3. main 2.4. 3 4 5 6 7 printf printf

More information

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

C言語によるアルゴリズムとデータ構造 Algorithms and Data Structures in C 4 algorithm List - /* */ #include List - int main(void) { int a, b, c; int max; /* */ Ÿ 3Ÿ 2Ÿ 3 printf(""); printf(""); printf(""); scanf("%d", &a); scanf("%d",

More information

A-GAGE High - Resolution MINI ARRAY Instruction Manual Printed in Japan J20005M

A-GAGE High - Resolution MINI ARRAY Instruction Manual     Printed in Japan J20005M A-GAGE High - Resolution MINI ARRAY Instruction Manual E-mail : mail@bannerengineering.co.jp http://www.bannerengineering.com Printed in Japan J20005M4 page 2 page 3 page 4 page 5 page 6 page 7 page 8

More information

文字コードとその実装

文字コードとその実装 1 2001 11 3 1 2 2 2 2.1 ISO/IEC 646 IRV US-ASCII................................. 2 2.2 ISO/IEC 8859 JIS X 0201..................................... 4 2.3 ISO/IEC 2022............................... 6

More information

第一章 系统讯息

第一章 系统讯息 KC-3200ZB Wireless Linear Imager Scanner プログラミング設定マニュアル - 1 - Chapter 1 システム情報 目次 1.1 このマニュアルについて 3 1.2 セットアップ方法について 4 1.3 ペアリング設定方法 5 1.4 スキャナー LED の説明 6 1.5 バッテリ充電について 6 1.6 ビープ音の設定 6 1.7 周波数の設定 7 1.8

More information

Microsoft Word - 5J0080_EAN-128MenuBook_v023.doc

Microsoft Word - 5J0080_EAN-128MenuBook_v023.doc 目 次 1. はじめに 2 2.UCC/EAN-128 概要 2 3. 仕様概要 3 4. 設定方法 6 5. オプション設定 12 6. 出力モード 1 用アプリケーション識別子メニュー 14 7. 直接入力 23 本書の内容につきましては 万全を期して作成いたしましたが 万一ご不審の点やお気づきの点がございましたら 弊社営業部までご連絡ください 本書の一部または全部を無断で複製することは禁止されております

More information

PowerPoint Presentation

PowerPoint Presentation p.130 p.198 p.208 2 double weight[num]; double min, max; min = max = weight[0]; for( i= 1; i i < NUM; i++ ) ) if if ( weight[i] > max ) max = weight[i]: if if ( weight[i] < min ) min = weight[i]: weight

More information

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)* (

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)* ( 2016 2016 07 28 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF : 11011 N N 0 N N 11 1001 N N N N 0, 1 BNF N N 0 11 (parse tree) 11 (1) 1100100 (2) 1111011 (3) 1110010 (4) 1001011

More information

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) * *

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) * * 2015 2015 07 30 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 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) +

More information

型番 USB :F830-U RS232C:F830-R 組込み式 2 次元コードリーダー F830 詳細設定マニュアル Ver1.0 1

型番 USB :F830-U RS232C:F830-R 組込み式 2 次元コードリーダー F830 詳細設定マニュアル Ver1.0 1 型番 USB :F830-U RS232C:F830-R 組込み式 2 次元コードリーダー F830 詳細設定マニュアル Ver1.0 1 改定履歴 Ver 発行日改定履歴 1.0 2019/05/14 初版発行 FW:D_HEM_V1.69_Tjp_H03_D4_CG8_LLJ1_BL14_M0A 2 目次 1. 同梱品とトリガーボタンの説明... 5 1.1 同梱品... 5 1.2 トリガーボタン...

More information

/* sansu1.c */ #include <stdio.h> main() { int a, b, c; /* a, b, c */ a = 200; b = 1300; /* a 200 */ /* b 200 */ c = a + b; /* a b c */ }

/* sansu1.c */ #include <stdio.h> main() { int a, b, c; /* a, b, c */ a = 200; b = 1300; /* a 200 */ /* b 200 */ c = a + b; /* a b c */ } C 2: A Pedestrian Approach to the C Programming Language 2 2-1 2.1........................... 2-1 2.1.1.............................. 2-1 2.1.2......... 2-4 2.1.3..................................... 2-6

More information

‚æ2›ñ C„¾„ê‡Ìš|

‚æ2›ñ C„¾„ê‡Ìš| I 8 10 10 I ( 6 ) 10 10 1 / 23 1 C ( ) getchar(), gets(), scanf() ( ) putchar(), puts(), printf() 1 getchar(), putchar() 1 I ( 6 ) 10 10 2 / 23 1 (getchar 1 1) 1 #include 2 void main(void){ 3 int

More information

/* 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

/* 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 1 http://www7.bpe.es.osaka-u.ac.jp/~kota/classes/jse.html kota@fbs.osaka-u.ac.jp /* do-while */ #include #include int main(void) double val1, val2, arith_mean, geo_mean; printf( \n );

More information

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

A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B A/B (2018/10/19) Ver. 1.0 kurino@math.cst.nihon-u.ac.jp http://edu-gw2.math.cst.nihon-u.ac.jp/ kurino/2018/soft/soft.html 2018 10 19 A/B 1 2018 10 19 2 1 1 1.1 OHP.................................... 1

More information

データフォーマットの設定例 Ver.F

データフォーマットの設定例 Ver.F 資料データフォーマットの設定例 株式会社エイポック www.a-poc.co.jp 目次はじめに 第 1 章本書の見方と設定方法 第 2 章データフォーマットの設定例 例 1 データの途中から出力する( データの先頭を削除する ) 例 2 データの後方から削除する 例 3 データの途中までを出力する 例 4 データの中間を出力する 例 5 データの中間にキャラクタやキーを挿入する 例 6 指定した文字を無効にして(

More information

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

:30 12:00 I. I VI II. III. IV. a d V. VI 2017 2017 08 03 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF X [ S ] a S S ; X X X, S [, a, ], ; BNF X (parse tree) (1) [a;a] (2) [[a]] (3) [a;[a]] (4) [[a];a] : [a] X 2 222222

More information

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

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 18 C ( ) 1 1 1.1 hello world.c 5 printf("hello World\n"); 6 } [ ] [ ] #include % cc hello_world.c %./a.out Hello World [a.out ] % cc hello_world.c -o hello_world [ ( ) ] (K&R 4.1.1) #include

More information

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

:30 12:00 I. I VI II. III. IV. a d V. VI 2018 2018 08 02 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF N N y N x N xy yx : yxxyxy N N x, y N (parse tree) (1) yxyyx (2) xyxyxy (3) yxxyxyy (4) yxxxyxxy N y N x N yx

More information

超初心者用

超初心者用 3 1999 10 13 1. 2. hello.c printf( Hello, world! n ); cc hello.c a.out./a.out Hello, world printf( Hello, world! n ); 2 Hello, world printf n printf 3. ( ) int num; num = 100; num 100 100 num int num num

More information

データロジックスキャニング株式会社

データロジックスキャニング株式会社 Magellan1100i 1D / 2D スキャナ設定ガイド REV.L 2016 年 3 月 IDEC AUTO-ID SOLUTIONS 株式会社本社 661-0967 兵庫県尼崎市潮江 5 丁目 8 番 10 号 TEL:06-7711-8880 FAX:06-6398-3202 東京支店 108-6014 東京都港区港南 2 丁目 15 番 1 号 TEL:03-5715-2177 FAX:03-5715-2178

More information

Barcode Setup Manual

Barcode Setup Manual 2016/04/Ver 1.2 目 次 セットアップ フローチャート... 4 PS800Z 初 期 設 定... 5 Part I システム 情 報... 6 ファームウェアバージョン... 6 Part II キーボードウェッジパラメーター... 7 2.1 ターミナルタイプ... 7 2.2 言 語 選 択... 7 2.3 ファンクションキー エミュレーション... 8 2.4 ALT モード...

More information

03478-90405 3478A ディジタル・マルチメータ 取扱説明書 - Sep97

03478-90405 3478A ディジタル・マルチメータ 取扱説明書 - Sep97 このドキュメントについて このドキュメントは アジレント テクノロジー ウェブサイトによって お 客 様 に 製 品 のサポ ートをご 提 供 するために 公 開 しております 印 刷 が 判 読 し 難 い 箇 所 または 古 い 情 報 が 含 まれている 場 合 がございますが ご 容 赦 いただけますようお 願 いいたします 今 後 新 しいコピーが 入 手 できた 場 合 には アジレント

More information

‚æ4›ñ

‚æ4›ñ ( ) ( ) ( ) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 (OUS) 9 26 1 / 28 ( ) ( ) ( ) A B C D Z a b c d z 0 1 2 9 (OUS) 9

More information

dynabookガイド

dynabookガイド 1 2 3 4 5 6 7 8 9 10 11 12 14 15 16 17 18 19 20 21 22 23 24 25 26 SHIFT SHIFT 27 28 SHIFT SHIFT 29 30 31 32 D Y N A B O O K BACKSPACE DEL 33 34 35 36 37 38 39 40 ENTER SHIFT SHIFT 41 42 43 44 FN F8 FN

More information

dynabookガイド

dynabookガイド 1 2 3 4 5 6 7 8 9 10 11 14 15 16 17 18 19 20 21 22 23 SHIFT SHIFT 24 25 SHIFT SHIFT 26 27 28 29 D Y N A B O O K BACKSPACE DEL 30 31 32 33 34 35 36 37 ENTER SHIFT SHIFT 38 39 40 41 FN F8 FN F8 42 43 ENTER

More information

r07.dvi

r07.dvi 19 7 ( ) 2019.4.20 1 1.1 (data structure ( (dynamic data structure 1 malloc C free C (garbage collection GC C GC(conservative GC 2 1.2 data next p 3 5 7 9 p 3 5 7 9 p 3 5 7 9 1 1: (single linked list 1

More information

ohp07.dvi

ohp07.dvi 19 7 ( ) 2019.4.20 1 (data structure) ( ) (dynamic data structure) 1 malloc C free 1 (static data structure) 2 (2) C (garbage collection GC) C GC(conservative GC) 2 2 conservative GC 3 data next p 3 5

More information

P05.ppt

P05.ppt 2 1 list0415.c forfor #include int i, j; for (i = 1; i

More information

tuat1.dvi

tuat1.dvi ( 1 ) http://ist.ksc.kwansei.ac.jp/ tutimura/ 2012 6 23 ( 1 ) 1 / 58 C ( 1 ) 2 / 58 2008 9 2002 2005 T E X ptetex3, ptexlive pt E X UTF-8 xdvi-jp 3 ( 1 ) 3 / 58 ( 1 ) 4 / 58 C,... ( 1 ) 5 / 58 6/23( )

More information

QuickScan L Bar Code Scanner スキャナ設定ガイド

QuickScan L Bar Code Scanner スキャナ設定ガイド QuickScan L Bar Code Scanner スキャナ設定ガイド ご注意 本書の内容の全部または一部を無断で複製 配布することを禁じます 本書の内容は予告なしに変更する場合がありますのでご了承下さい 本書の内容には万全を期していますが内容を保証するものではありません ご不審な点や誤り記載漏れなどお気付きのことがありましたら ご購入された販売店もしくはデータロジックスキャニングまでお問合せ下さい

More information

r08.dvi

r08.dvi 19 8 ( ) 019.4.0 1 1.1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( ) 1 next 1 prev 1 head cur tail head cur prev

More information

ohp08.dvi

ohp08.dvi 19 8 ( ) 2019.4.20 1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: 2 (2) NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( 2) 3 (3) head cur tail head cur prev data

More information

joho07-1.ppt

joho07-1.ppt 0xbffffc5c 0xbffffc60 xxxxxxxx xxxxxxxx 00001010 00000000 00000000 00000000 01100011 00000000 00000000 00000000 xxxxxxxx x y 2 func1 func2 double func1(double y) { y = y + 5.0; return y; } double func2(double*

More information

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

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç C (3) if else switch AND && OR (NOT)! 1 BMI BMI BMI = 10 4 [kg]) ( [cm]) 2 bmi1.c Input your height[cm]: 173.2 Enter Input your weight[kg]: 60.3 Enter Your BMI is 20.1. 10 4 = 10000.0 1 BMI BMI BMI = 10

More information

Taro-リストⅠ(公開版).jtd

Taro-リストⅠ(公開版).jtd 0. 目次 1. 再帰的なデータ構造によるリストの表現 1. 1 リストの作成と表示 1. 1. 1 リストの先頭に追加する方法 1. 1. 2 リストの末尾に追加する方法 1. 1. 3 昇順を保存してリストに追加する方法 1. 2 問題 問題 1 問題 2-1 - 1. 再帰的なデータ構造によるリストの表現 リストは データの一部に次のデータの記憶場所を示す情報 ( ポインタという ) を持つ構造をいう

More information

johokiso-char.pdf.pdf

johokiso-char.pdf.pdf 1 2 (2) l ASCIIJISUnicode ISO-2022-JP, Shift_JIS, EUC-JP Web l Copyright 2006-2018 Kota Abe 2018/06/12 3 4 l ()!? 5 6 l : This is a pen. 84 104 105 83 This is a pen. (, encode) () (, decode) l 41 42 43

More information

kiso2-09.key

kiso2-09.key 座席指定はありません 計算機基礎実習II 2018 のウェブページか 第9回 ら 以下の課題に自力で取り組んで下さい 計算機基礎実習II 第7回の復習課題(rev07) 第9回の基本課題(base09) 第8回試験の結果 中間試験に関するコメント コンパイルできない不完全なプログラムなど プログラミングに慣れていない あるいは複雑な問題は 要件 をバラして段階的にプログラムを作成する exam08-2.c

More information

Microsoft Word - SP605取扱説明書1_0a.doc

Microsoft Word - SP605取扱説明書1_0a.doc 1.0a 版 対 応 機 種 型 番 : SP605KB (PS/2 キーボードウェッジ) SP605USB (USB キーボード) はじめに このたびはペンスキャナ SP605 シリーズをお 買 い 上 げいただき 誠 にありがとうござい ます 本 取 扱 説 明 書 には SP605 シリーズの 外 部 機 器 との 接 続 方 法 および 内 部 パラメータの 設 定 方 法 について 記 載

More information

Barcode Setup Manual

Barcode Setup Manual PS800ZR Version : 1.2 2018/07/23 1 目次 セットアップフローチャート... 3 Part I システム情報... 4 1.1 ファームウェアバージョン... 4 Part II キーボード設定... 5 2.1 言語選択... 5 2.2 文字間ディレイ時間... 5 2.3 データ転送前ディレイ時間... 6 2.4 付加文字... 6 Part III システム設定...

More information

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

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます.  このサンプルページの内容は, 新装版 1 刷発行時のものです. C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. http://www.morikita.co.jp/books/mid/009383 このサンプルページの内容は, 新装版 1 刷発行時のものです. i 2 22 2 13 ( ) 2 (1) ANSI (2) 2 (3) Web http://www.morikita.co.jp/books/mid/009383

More information

ITC-65 セットアップマニュアル 第 1.2 版 :

ITC-65 セットアップマニュアル 第 1.2 版 : ITC-65 セットアップマニュアル 第 1.2 版 : 2012-10 121004 Copyright ZEBEX INDUSTRIES INC. はじめにこのたびは ITC-65をお買い求めいただきまして誠にありがとうございます 本製品を正しくご使用いただくために このマニュアルをよくお読みいただき保管してください 本書の内容は改良などにより予告なく変更することがあります このセットアップマニュアルは設定を変更される場合にのみ必要です

More information

Taro-リストⅢ(公開版).jtd

Taro-リストⅢ(公開版).jtd リスト Ⅲ 0. 目次 2. 基本的な操作 2. 1 リストから要素の削除 2. 2 リストの複写 2. 3 リストの連結 2. 4 問題 問題 1 問題 2-1 - 2. 基本的な操作 2. 1 リストから要素の削除 まず 一般的な処理を書き つぎに 特別な処理を書く 一般的な処理は 処理 1 : リスト中に 削除するデータを見つけ 削除する場合への対応 特別な処理は 処理 2 : 先頭のデータを削除する場合への対応

More information

main

main 14 1. 12 5 main 1.23 3 1.230000 3 1.860867 1 2. 1988 1925 1911 1867 void JPcalendar(int x) 1987 1 64 1 1 1 while(1) Ctrl C void JPcalendar(int x){ if (x > 1988) printf(" %d %d \n", x, x-1988); else if(x

More information

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

Microsoft PowerPoint - C言語の復習(配布用).ppt [互換モード] if 文 (a と b の大きい方を表示 ) C 言語 Ⅰ の復習 条件判定 (if, 条件式 ) ループ (for[ 二重まで ], while, do) 配列 ( 次元 次元 ) トレース int a, b; printf( 整数 a: ); scanf( %d, &a); printf( 整数 b: ); scanf( %d, &b); //つのif 文で表現する場合間違えやすい どっちに =

More information

解きながら学ぶC言語

解きながら学ぶC言語 printf 2-5 37 52 537 52 printf("%d\n", 5 + 37); 5370 source program source file.c ex00.c 0 comment %d d 0 decimal -2 -p.6 3-2 5 37 5 37-22 537 537-22 printf("537%d\n", 5-37); function function call ( )argument,

More information

ex12.dvi

ex12.dvi 1 0. C, char., char, 0,. C, ("),., char str[]="abc" ; str abc.,, str 4. str 3. char str[10]="abc" ;, str 10, str 3., char s[]="abc", t[10] ;, t = s. ASCII, 0x00 0x7F, char., "abc" 3, 1. 1 8 256, 2., 2

More information

Z D

Z D SCN02-Z2D ハンディスキャナー プログラミングマニュアル 1 目次 ユーザー設定... 3 システム設定... 3 ビープ音設定... 3 カスタム設定... 5 インターフェース切り替え... 5 照準パターン... 6 スキャンモード... 7 同一コード読み取り間隔... 7 パラメータ設定... 8 キーボード設定... 9 シンボル設定... 12 Codabar(NW-7) 設定...

More information

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

[1] #include<stdio.h> main() { printf(hello, world.); return 0; } (G1) int long int float ± ± [1] #include printf("hello, world."); (G1) int -32768 32767 long int -2147483648 2147483647 float ±3.4 10 38 ±3.4 10 38 double ±1.7 10 308 ±1.7 10 308 char [2] #include int a, b, c, d,

More information

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

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

More information

Microsoft Word - CM-520BT設定マニュアル5.docx

Microsoft Word - CM-520BT設定マニュアル5.docx CM-520BT 設 定 コード アイメックス 株 式 会 社 CM520W:201511101 マニュアルに 関 する 注 意 バーコードを 印 刷 する 時 は 高 解 像 度 にて 印 刷 して 下 さい バーコードの 比 率 が 変 わり 読 取 りに 影 響 する 場 合 がございます ファームウェアのバージョンにより 設 定 出 来 ない 機 能 があります バージョン 改 版 日 内

More information

kbd_reference.ps

kbd_reference.ps Windows Windows 45 IBM Windows 5.8 ( : 5639-I70) URL http://www.ibm.com/jp/manuals/main/mail.html IBM http://www.ibm.com/jp/manuals/ (URL ) Personal Communications for Windows Keyboard Layout and Mapping

More information

A/B (2018/06/08) Ver kurino/2018/soft/soft.html A/B

A/B (2018/06/08) Ver kurino/2018/soft/soft.html A/B A/B (2018/06/08) Ver. 1.0 kurino@math.cst.nihon-u.ac.jp http://edu-gw2.math.cst.nihon-u.ac.jp/ kurino/2018/soft/soft.html 2018 6 8 A/B 1 2018 6 8 2 1 1 1.1 OHP.................................... 1 1.2

More information

橡Pro PDF

橡Pro PDF 1 void main( ) char c; /* int c; */ int sum=0; while ((c = getchar())!= EOF) if(isdigit(c) ) sum += (c-'0'); printf("%d\n", sum); main()int i,sum=0; for(i=0;i

More information

LS2200.book

LS2200.book LS 2200/2208 VCCI B 160-0023 1-22-2 4F 03 3348-0213 532-0003 5-1-18 9F 06 6394-8863 LS2200/2208 CDRH Class II IEC Class 2 LS2200/2208 LS2200/2208 AC AC ......................................................................

More information

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

char int float double の変数型はそれぞれ 文字あるいは小さな整数 整数 実数 より精度の高い ( 数値のより大きい より小さい ) 実数 を扱う時に用いる 備考 : 基本型の説明に示した 浮動小数点 とは数値を指数表現で表す方法である 例えば は指数表現で 3 書く 変数 入出力 演算子ここまでに C 言語プログラミングの様子を知ってもらうため printf 文 変数 scanf 文 if 文を使った簡単なプログラムを紹介した 今回は変数の詳細について習い それに併せて使い方が増える入出力処理の方法を習う また 演算子についての復習と供に新しい演算子を紹介する 変数の宣言プログラムでデータを取り扱う場合には対象となるデータを保存する必要がでてくる このデータを保存する場所のことを

More information

Welch Allyn Data Collection Inc., All rights reserved.

Welch Allyn Data Collection Inc., All rights reserved. IMAGETEA TM 3800 Hand Held Linear Imager 2000-2001 Welch Allyn Data Collection Inc., All rights reserved. http://www.handheld.com hhp@courante.msn.com 1 1 1 2 Disconnect 3 1 2 1 3 Keyboard Wedge Interface

More information

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL 2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL   2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b II 5 (1 2005 5 26 http://www.math.meiji.ac.jp/~mk/syori2-2005/ UNIX (Linux Linux 1 : 2005 http://www.math.meiji.ac.jp/~mk/syori2-2005/jouhousyori2-2005-00/node2. html ( (Linux 1 2 ( ( http://www.meiji.ac.jp/mind/tool/internet-license/

More information

コンピュータにおける情報の表現 (2)

コンピュータにおける情報の表現 (2) 1 2013 年度春学期 情報基礎 ICT Foundation コンピュータにおける情報の表現 (2) Copyright 2010, IT Gatekeeper Project Ohiwa Lab. All rights reserved. 2 目次 文字の表現 アナログとデジタル 音のデジタル化 画像と動画のデジタル化 情報圧縮 3 ICT Foundation 文字の表現 Copyright

More information

BW BW

BW BW Induced Sorting BW 11T2042B 2015 3 23 1 1 1.1................................ 1 1.2................................... 1 2 BW 1 2.1..................................... 2 2.2 BW.................................

More information

Microsoft Word - ITL-3001_3001Plusマニュアル1.03版  doc

Microsoft Word - ITL-3001_3001Plusマニュアル1.03版  doc ITL-3001/3001Plus セットアップマニュアル 第 1.03 版 : 2009-07 090708 Copyright ZEBEX INDUSTRIES INC. はじめにこのたびは ITL-3001をお買い求めいただきまして誠にありがとうございます 本製品を正しくご使用いただくために このマニュアルをよくお読みいただき保管してください 本書の内容は改良などにより予告なく変更することがあります

More information

void hash1_init(int *array) int i; for (i = 0; i < HASHSIZE; i++) array[i] = EMPTY; /* i EMPTY */ void hash1_insert(int *array, int n) if (n < 0 n >=

void hash1_init(int *array) int i; for (i = 0; i < HASHSIZE; i++) array[i] = EMPTY; /* i EMPTY */ void hash1_insert(int *array, int n) if (n < 0 n >= II 14 2018 7 26 : : proen@mm.ics.saitama-u.ac.jp 14,, 8 2 12:00 1 O(1) n O(n) O(log n) O(1) 32 : 1G int 4 250 M 2.5 int 21 2 0 100 0 100 #include #define HASHSIZE 100 /* */ #define NOTFOUND 0

More information

Taro-再帰関数Ⅱ(公開版).jtd

Taro-再帰関数Ⅱ(公開版).jtd 0. 目次 6. 2 項係数 7. 二分探索 8. 最大値探索 9. 集合 {1,2,,n} 上の部分集合生成 - 1 - 6. 2 項係数 再帰的定義 2 項係数 c(n,r) は つぎのように 定義される c(n,r) = c(n-1,r) + c(n-1,r-1) (n 2,1 r n-1) = 1 (n 0, r=0 ) = 1 (n 1, r=n ) c(n,r) 0 1 2 3 4 5

More information

Taro-2分探索木Ⅱ(公開版).jtd

Taro-2分探索木Ⅱ(公開版).jtd 2 分探索木 Ⅱ 0. 目次 5. 2 分探索木の操作 5. 1 要素の探索 5. 2 直前の要素の探索 5. 3 直後の要素の探索 5. 4 要素の削除 5. 5 問題 問題 1-1 - 5. 2 分探索木の操作 5. 1 要素の探索 要素 44 の探索 (1) 要素 と 44 を比較して 左部分木をたどる (2) 要素 33 と 44 を比較して 右部分木をたどる (3) 要素 44 を見つけた

More information

コマンドリファレンスREV14.PDF

コマンドリファレンスREV14.PDF PD22 REV1.4 2002.3.26 REV 1.0 2001.10.01. 1.1 2001.10.15 1.2 2001.10.22 1.3 2001.11.01 1.4 2002.3.26 code128-1 - - 2 - - 3 - / / 4 / - 4-2 2 2 1 2 1 b - 5 - - 6 - , - 7 - 15 1 10-8 - 256 256 0 0 2-9 -

More information

新・明解C言語で学ぶアルゴリズムとデータ構造

新・明解C言語で学ぶアルゴリズムとデータ構造 第 1 章 基本的 1 n 141 1-1 三値 最大値 algorithm List 1-1 a, b, c max /* */ #include int main(void) { int a, b, c; int max; /* */ List 1-1 printf("\n"); printf("a"); scanf("%d", &a); printf("b"); scanf("%d",

More information

PS-800P 初期設定 最初に下記のバーコードを順番に読取ってからバーコードリーダーをお使い下さい 初期化 USB モード 日本語キーボード 以上で初期設定が完了いたしました -2 -

PS-800P 初期設定 最初に下記のバーコードを順番に読取ってからバーコードリーダーをお使い下さい 初期化 USB モード 日本語キーボード 以上で初期設定が完了いたしました -2 - PS-800P 設定メニュー 株式会社アルフ 155-0032 東京都世田谷区代沢 3-6-11 TEL.03-5432-7170 FAX.03-5432-7172 barcode@alf-net.co.jp -1 - PS-800P 初期設定 最初に下記のバーコードを順番に読取ってからバーコードリーダーをお使い下さい 初期化 USB モード 日本語キーボード 以上で初期設定が完了いたしました -2

More information

卒 業 研 究 報 告.PDF

卒 業 研 究 報 告.PDF C 13 2 9 1 1-1. 1-2. 2 2-1. 2-2. 2-3. 2-4. 3 3-1. 3-2. 3-3. 3-4. 3-5. 3-5-1. 3-5-2. 3-6. 3-6-1. 3-6-2. 4 5 6 7-1 - 1 1 1-1. 1-2. ++ Lisp Pascal Java Purl HTML Windows - 2-2 2 2-1. 1972 D.M. (Dennis M Ritchie)

More information

P02.ppt

P02.ppt int If 2 1 ,,, 3 a + b ab a - b ab a * b ab a / b ab a % b ab a + b 4 2 list0201.c /, % /*/ int vx, vy; puts(""); printf("vx"); scanf("%d", &vx); printf("vy"); scanf("%d", &vy); printf("vx + vy = %d\n",

More information

新・明解C言語 実践編

新・明解C言語 実践編 第 1 章 見 21 1-1 見えないエラー 見 List 1-1 "max2x1.h" a, b max2 List 1-1 chap01/max2x1.h max2 "max2x1.h" #define max2(a, b) ((a) > (b)? (a) : (b)) max2 List 1-2 List 1-2 chap01/max2x1test.c max2 #include

More information

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

2 P.S.P.T. P.S.P.T. wiki  26 P.S.P.T. C 2011 4 10 2 P.S.P.T. P.S.P.T. wiki p.s.p.t.since1982@gmail.com http://www23.atwiki.jp/pspt 26 3 2 1 C 8 1.1 C................................................ 8 1.1.1...........................................

More information

( )!?

( )!? (2) Copyright 2006 Kota Abe ( )!? : This is a pen. 84 104 105 83 (, encode) ( ) 84 104 105 83 This is a pen. (, decode) Do you know Tom Riddle? Yes!! ASCII American Standard Code for Information Interchange

More information

プログラミング基礎

プログラミング基礎 C プログラミング Ⅰ 条件分岐 if~else if~else 文,switch 文 条件分岐 if~else if~else 文 if~else if~else 文 複数の条件で処理を分ける if~else if~else 文の書式 if( 条件式 1){ 文 1-1; 文 1-2; else if( 条件式 2){ 文 2-1; 文 2-2; else { 文 3-1; 文 3-2; 真条件式

More information

新版明解C言語 実践編

新版明解C言語 実践編 2 List - "max.h" a, b max List - max "max.h" #define max(a, b) ((a) > (b)? (a) : (b)) max List -2 List -2 max #include "max.h" int x, y; printf("x"); printf("y"); scanf("%d", &x); scanf("%d", &y); printf("max(x,

More information

C 言語第 3 回 2 a と b? 関係演算子 a と b の関係 関係演算子 等しい a==b 等しくない a!=b より大きい a>b 以上 a>=b より小さい a<b 以下 a<=b 状態 真偽 値 条件が満たされた場合 TRUE( 真 ) 1(0 以外 ) 条件が満たされなかった場合 F

C 言語第 3 回 2 a と b? 関係演算子 a と b の関係 関係演算子 等しい a==b 等しくない a!=b より大きい a>b 以上 a>=b より小さい a<b 以下 a<=b 状態 真偽 値 条件が満たされた場合 TRUE( 真 ) 1(0 以外 ) 条件が満たされなかった場合 F C 言語第 3 回 三つの基本構造 ( シラバス 5 6 回目 ) 1 1 順次処理上から順番に実行していく #include int main(void) { long x, y; 最初 長い整数がつかえる 負の数もか だいたい ±21 億まで OK なんだ 掛け算するぞ x = 1000*2000; scanf("%ld", &y); printf("%ld", x*y);

More information

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

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 II 3 yacc (2) 2005 : Yacc 0 ~nakai/ipp2 1 C 1 6 9 1 main main 1 NULL NULL 1 15 23 25 48 26 30 32 36 38 43 45 47 50 52 for 2 (a) 2 2 1 Yacc 2 (b) 2 3 yytext tmp2 ("") tmp2->next->word tmp2 yytext tmp2->next->word

More information

専門基礎11(情報の表現)

専門基礎11(情報の表現) 専門基礎 Ⅰ 第 11 回 情報の表現 数値を 0 と 1 で表現するには? ( A ) とは 整数と実数の表現 0 とそれに 1 ずつ加えていって得られる自然数 (1, 2, 3, 4, ) および 1 ずつ引いていって得られる数 ( 1, 2, 3, 4, ) の総称である マイナスを含む自然数 ( B ) とは 分数で表せる数も表せない数も全て 小数点で表せられる 存在しうるすべての数 それらの数値を

More information

A/B (2010/10/08) Ver kurino/2010/soft/soft.html A/B

A/B (2010/10/08) Ver kurino/2010/soft/soft.html A/B A/B (2010/10/08) Ver. 1.0 kurino@math.cst.nihon-u.ac.jp http://edu-gw2.math.cst.nihon-u.ac.jp/ kurino/2010/soft/soft.html 2010 10 8 A/B 1 2010 10 8 2 1 1 1.1 OHP.................................... 1 1.2.......................................

More information

ex14.dvi

ex14.dvi 1,, 0, b (b b 2 b ) n k n = n j b j, (0 n j b 1), n =(n k n k 1...n 1 n 0 ) b, n j j j +1, 0,...,b 1 (digit). b b, n b 1 ñ, ñ = k (b 1 n j )b j b N, n b n, n = b N n, n =ñ+1 b N, n m n + m (mod b N ),

More information

Microsoft PowerPoint - kougi9.ppt

Microsoft PowerPoint - kougi9.ppt C プログラミング演習 第 9 回ポインタとリンクドリストデータ構造 1 今まで説明してきた変数 #include "stdafx.h" #include int _tmain(int argc, _TCHAR* argv[]) { double x; double y; char buf[256]; int i; double start_x; double step_x; FILE*

More information

Prog1_15th

Prog1_15th 2012 年 7 月 26 日 ( 木 ) 実施構造体と typedef typedef 宣言によって,struct 構造体タグ名という表記を再定義し, データ型名のように扱うことができる 構文は typedef struct 構造体タグ名 再定義名 ; となり, この場合の構造体変数の宣言は, 再定義名を用いて行うことができる なお, ここでは 構造体タグ名は省略可能である 構造体を指すポインタ

More information

Taro-再帰関数Ⅲ(公開版).jtd

Taro-再帰関数Ⅲ(公開版).jtd 0. 目次 1 1. ソート 1 1. 1 挿入ソート 1 1. 2 クイックソート 1 1. 3 マージソート - 1 - 1 1. ソート 1 1. 1 挿入ソート 挿入ソートを再帰関数 isort を用いて書く 整列しているデータ (a[1] から a[n-1] まで ) に a[n] を挿入する操作を繰り返す 再帰的定義 isort(a[1],,a[n]) = insert(isort(a[1],,a[n-1]),a[n])

More information

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

Microsoft Word - C.....u.K...doc C uwêííôöðöõ Ð C ÔÖÐÖÕ ÐÊÉÌÊ C ÔÖÐÖÕÊ C ÔÖÐÖÕÊ Ç Ê Æ ~ if eíè ~ for ÒÑÒ ÌÆÊÉÉÊ ~ switch ÉeÍÈ ~ while ÒÑÒ ÊÍÍÔÖÐÖÕÊ ~ 1 C ÔÖÐÖÕ ÐÊÉÌÊ uê~ ÏÒÏÑ Ð ÓÏÖ CUI Ô ÑÊ ÏÒÏÑ ÔÖÐÖÕÎ d ÈÍÉÇÊ ÆÒ Ö ÒÐÑÒ ÊÔÎÏÖÎ d ÉÇÍÊ

More information

Microsoft PowerPoint - 説明3_if文switch文(C_guide3)【2015新教材対応確認済み】.pptx

Microsoft PowerPoint - 説明3_if文switch文(C_guide3)【2015新教材対応確認済み】.pptx 情報ネットワーク導入ユニット Ⅰ C 言語 if 文 switch 文 3 章 : プログラムの流れの分岐 if 文 if( 条件 ) 条件が成立すれば実行 if( 条件 ) ~ else 場合分け ( 成立, 不成立 ) if( 条件 A) ~ else if( 条件 B) ~ else if( 条件 C) ~ else 場合分け ( 複数の条件での場合分け ) 等価演算子 : == ( 等しい

More information

Microsoft Word - BW-330BTV21-設定シート_Rev3-5.docx

Microsoft Word - BW-330BTV21-設定シート_Rev3-5.docx AIMEX Corporation モバイル二次元スキャナ BW-330BT 設定バーコードシート Kernel : 0002.0049 アイメックス株式会社 BW330BT-1708075 AIMEX Corporation AIMEX Corporation 改訂表 改訂番号 改訂日 備 考 初版 2014/8/18 Bluetooth Ver2.1 対応 HID 接続で漢字入力対応 1 版 2014/9/19

More information