Makefile, TCPソケットサーバ, コマンドライン引数

Size: px
Start display at page:

Download "Makefile, TCPソケットサーバ, コマンドライン引数"

Transcription

1 L11( Tue) : Time-stamp: Fri 12:28 JST hig ( ) make L11 (2017) 1 / 24

2 I, void die(char message) void die(char message[])... 1 #i n c l u d e <math. h> 2 / / 3 double y, z ; 4 y =1.3 exp ( 1. 3 ) ; 5 p r i n t f ( %f \n, y ) ; 6 z= 3.2 exp ( 3.2); 7 p r i n t f ( %f \n, z ) ; main.c L11 (2017) 2 / 24

3 main.c 1 #i n c l u d e l i b. h 2 / / 3 double y, z ; 4 y=f ( 1. 3 ) ; 5 z=f ( 3.2); lib.h 1 #i f n d e f LIB H 2 #d e f i n e LIB H 3 double f ( double x ) ; 4 #e n d i f lib.c 1 #i n c l u d e <math. h> 2 #i n c l u d e l i b. h 3 4 double f ( double x ){ 5 double a ; 6 a=x exp ( x ) ; 7 p r i n t f ( %f \n, a ) ; 8 r e t u r n a ; 9 } L11 (2017) 3 / 24

4 10 11 make Makefile L11 (2017) 4 / 24

5 ( ) ( ) fopen socket fopen connect / fscanf,fprintf recv,send fclose shutdown fclose close fopen-fscanf-fclose, open-read-close. L11 (2017) 5 / 24

6 s1 s=socket s2 bind s3 listen c1 sc=socket socket-server01 c2 connect s4, ws=accept c3s ( ) send/recv recv/send c4s shutdown(sc) shutdown(ws) c5s close(sc) close(ws) s5 s4 s ws. s., sleeping OS.,. II,.,. II, fork. L11 (2017) 6 / 24

7 L11 (2017) 7 / 24

8 netstat 1 $ n e t s t a t at 2 ( ) 3 Proto Q Q 4 tcp 0 0 l o c a l h o s t. localdom :6010 : LISTEN 5 tcp 0 0 : microsoft ds : LISTEN 6 tcp 0 0 s01cd : ssh : ESTABLISHED 7 tcp 0 0 s01cd : ssh ueh st. ryuk :50423 ESTABLISHED 8 tcp 0 0 s01cd :59322 s01svvhd02. dream. r : http ESTABLISHED 9 tcp 0 0 s01cd :36902 i f s 3 : nfs TIME WAIT 10 tcp 0 0 s01cd :46408 i f s 3 : sunrpc TIME WAIT 11 tcp 0 0 s01cd :59320 s01svvhd02. dream. r : http TIME WAIT 12 tcp 0 0 s01cd :773 i f s 3 : nfs ESTABLISHED 13 tcp 1 0 l o c a l h o s t. l o c a l d o :51020 l o c a l h o s t. localdoma : i p p CLOSE WAIT 14 tcp 0 0 s01cd :59321 s01svvhd02. dream. r : http TIME WAIT IP ( ), localhost. 10.*.*.*, *.*, ( ) /12,. L11 (2017) 8 / 24

9 1 #i n c l u d e <arpa / i n e t. h> 2 #i n c l u d e <s t d i o. h> 3 #i n c l u d e < s t d l i b. h> 4 #i n c l u d e <s t r i n g. h> 5 #i n c l u d e <s y s / t y p e s. h> 6 #i n c l u d e <s y s / s o c k e t. h> 7 #i n c l u d e <s y s / u i o. h> 8 #i n c l u d e <u n i s t d. h> 9 10 #d e f i n e NQUEUESIZE 5 socket-server01.c 11 #d e f i n e SERVER PORT 0 / 12 #d e f i n e BUFFERSIZE / / 15 void d i e ( char message [ ] ) ; i n t main ( void ){ 18 i n t s ; / / L11 (2017) 9 / 24

10 19 i n t ws ; / / 20 s t r u c t s o c k a d d r i n sa, ca ; /, 21 s o c k l e n t c a l e n ; / t y p e d e f / 22 i n t m e s s a g e s i z e ; 23 char r e c v b u f f e r [ BUFFERSIZE ] ; 24 i n t v a l =1; 25 i n t n ; 26 char message [ BUFFERSIZE ] ; i f ( ( s=s o c k e t ( AF INET, SOCK STREAM,0))== 1){ 29 d i e ( s o c k e t ) ; 30 } / ( ) / 33 i f ( s e t s o c k o p t ( s, SOL SOCKET, SO REUSEADDR,& v a l, s i z e o f v a l ) ) { 34 d i e ( s o c k e t o p t s ) ; 35 } sa. s i n f a m i l y=af INET ; 38 sa. s i n p o r t = htons (SERVER PORT ) ; 39 sa. s i n a d d r. s a d d r = h t o n l (INADDR ANY ) ; / I P L11 (2017) 10 / 24

11 40 / sa. s i n z e r o [ 8 ] ; / 41 i f ( b i n d ( s, ( s t r u c t s o c k a d d r )& sa, s i z e o f ( sa ))== 1){ 42 d i e ( bind ) ; 43 } i f ( l i s t e n ( s, NQUEUESIZE)== 1 ){ 46 d i e ( l i s t e n ) ; 47 } w h i l e ( 1 ) { 50 c a l e n=s i z e o f ( ca ) ; i f ( ( ws=a c c e p t ( s, ( s t r u c t s o c k a d d r )&ca, &c a l e n ))== 1){ 53 d i e ( a c c e p t ) ; 54 } i f ( ( m e s s a g e s i z e = r e c v ( ws, r e c v b u f f e r, BUFFERSIZE,0)) <0){ 57 d i e ( r e c v ) ; 58 } 59 r e c v b u f f e r [ m e s s a g e s i z e ]= \0 ; 60 L11 (2017) 11 / 24

12 61 i f ( strncmp ( r e c v b u f f e r, count, s t r l e n ( count ))!=0){ 62 s t r c p y ( message, Penguin! \ n ) ; 63 } e l s e { 64 n=s t r l e n ( r e c v b u f f e r ) s t r l e n ( count ) ; 65 i f ( n==0){ 66 s t r c p y ( message, No A d e l i e Penguins! \ n ) ; 67 } e l s e i f ( n==1){ 68 s t r c p y ( message, One A d e l i e Penguin! \ n ) ; 69 } e l s e { 70 s p r i n t f ( message, %d A d e l i e Penguins! \ n, n ) ; 71 } 72 } 73 f p r i n t f ( s t d e r r, %s \n, r e c v b u f f e r ) ; i f ( w r i t e ( ws, message, s t r l e n ( message ))== 1){ 76 d i e ( w r i t e ) ; 77 } i f ( shutdown ( ws, SHUT RDWR)== 1 ){ 80 d i e ( shutdown ) ; 81 } L11 (2017) 12 / 24

13 82 83 i f ( c l o s e ( ws)== 1 ){ 84 d i e ( c l o s e ) ; 85 } } r e t u r n 0 ; 90 } / / 94 void d i e ( char message [ ] ) { 95 p e r r o r ( message ) ; 96 e x i t ( 1 ) ; 97 } L11 (2017) 13 / 24

14 I 1 #i n c l u d e <s y s / t y p e s. h> 2 #i n c l u d e <s y s / s o c k e t. h> 3 4 / / 5 i n t s o c k e t ( ) ; 6 7 / / 8 i n t b i n d ( i n t s, s t r u c t s o c k a d d r sa, i n t s a l e n ) ; 9 / s, sa / / 13 i n t l i s t e n ( i n t s,, i n t l e n q u e u e ) ; 14 / s, l e n q u e u e ( / L11 (2017) 14 / 24

15 II 18 i n t a c c e p t ( i n t s, s t r u c t s o c k a d d r ca, i n t c a l e n ) ; 19 / s 20 addr, c a l e n 21 / API sizeof int x;, sizeof (int), sizeof x ( ) sizeof(char)==1 L11 (2017) 15 / 24

16 ( ) 1 #i n c l u d e <s y s / s o c k e t. h> 2 3 i n t s o c k e t ( i n t f a m i l y, i n t type, i n t p r o t o c o l ) ; 4 /, / 5 6 i n t shutdown ( i n t sockfd, i n t how ) ; 7 / / 1 #i n c l u d e <u n i s t d. h> 2 i n t c l o s e ( i n t s o c k e t f d ) ; 3 / / L11 (2017) 16 / 24

17 ( ) 1 #i n c l u d e <s y s / t y p e s. h> 2 #i n c l u d e <s y s / s o c k e t. h> 3 4 i n t connect ( i n t sockfd, s t r u c t s o c k a d d r a d d r e s s, i n t a d d r l e n 5 / s o c k f d, 6 a d d r e s s 7 / 8 9 i n t r e c v ( i n t sockfd, char buf, i n t len, i n t f l a g s ) ; 10 / b u f, l e n / 11 /. 0, 1 / i n t send ( i n t sockfd, char buf, i n t len, i n t f l a g s ) ; 14 / b u f, l e n / 15 /. 1 / L11 (2017) 17 / 24

18 ( ) socket-client03 1 char s []= 10 p e n g u i n s ; 2 i n t n ; 3 s s c a n f ( s, %d,&n ) ; 1 char s []= 10 p e n g u i n s ; 2 i n t n ; 3 n=a t o i ( s ) ; / A s c i i c h a r a c t e r TO I n t e g e r / 4 / a t o l, atod / (, s /, ). L11 (2017) 18 / 24

19 make Makefile make Makefile L11 (2017) 19 / 24

20 make Makefile make make01 1 $ cc o d i e. o c d i e. c # d i e. c d i e. h 2 $ cc o main. o c main. c # main. c d i e. h 3 $ cc o main d i e. o main. o lm # main. o d i e. o. 1 $ make main, Makefile. Makefile. L11 (2017) 20 / 24

21 make Makefile Makefile 1 # T A B. 2 d i e. o : d i e. h d i e. c 3 cc o d i e. o c d i e. c 4 Makefile 5 main. o : d i e. h main. c 6 cc o main. o c d i e. c 7 main : d i e. o main. o 8 cc o main d i e. o main. o lm 9 10 h e l l o. o : h e l l o. c 11 cc o h e l l o. o c h e l l o. c 12 h e l l o : h e l l o. c 13 cc o h e l l o h e l l o. o L11 (2017) 21 / 24

22 make Makefile Makefile : 1 1, (TAB) 1 1 a 3 (TAB) 1 1 b : $ make 1, 1 $ make , 11, 12, 13, 1, 1a, 1b. L11 (2017) 22 / 24

23 make Makefile *.c *.h, make,.. 1 # 2 d i e. o : d i e. h d i e. c 3 main. o : d i e. h main. c 4 h e l l o. o : h e l l o. c 5 h e l l o : h e l l o. c 6 7 # lm 8 main : d i e. o main. o 9 cc o main d i e. o main. o lm Makefile, ( : ),. 1 $ touch main. c # main. c L11 (2017) 23 / 24

24 make Makefile (1-502), 4(1-502) [ ]. L12. Makefile or Learn Math Moodle,. L11 (2017) 24 / 24

IP L09( Tue) : Time-stamp: Tue 14:52 JST hig TCP/IP. IP,,,. ( ) L09 IP (2017) 1 / 28

IP L09( Tue) : Time-stamp: Tue 14:52 JST hig TCP/IP. IP,,,. ( )   L09 IP (2017) 1 / 28 L09(2017-11-21 Tue) : Time-stamp: 2017-11-21 Tue 14:52 JST hig TCP/IP. IP,,,. http://hig3.net L09 (2017) 1 / 28 9, IP, - L09 (2017) 2 / 28 C (ex. ) 1 TCP/IP 2 3 ( ) ( L09 (2017) 3 / 28 50+5, ( )50+5. (

More information

エラー処理・分割コンパイル・コマンドライン引数

エラー処理・分割コンパイル・コマンドライン引数 L10(2017-12-05 Tue) : Time-stamp: 2017-12-17 Sun 11:59 JST hig. recv/send http://hig3.net ( ) L10 (2017) 1 / 21 IP I swallow.math.ryukoku.ac.jp:13 = 133.83.83.6:13 = : IP ( = ) (well-known ports), :. :,.

More information

疎な転置推移確率行列

疎な転置推移確率行列 B E05(2019-05-15 Tue) : Time-stamp: 2019-05-17 Fri 16:18 JST hig http://hig3.net ( ) E05 B(2019) 1 / 11 x = 0,..., m 1 m. p(t), p(x, t) 1 double p [m] = { 1. 0, 0. 0,...., 0. 0 } ; /. m. / 2 / {p ( 0,

More information

3 3.1 LAN ISDN (IP) 2 TCP/UDP IP IP IP IP (Ethernet) Ethernet LAN TCP/UDP LAN Ethernet LAN 2: Ethernet ATM, FDDI, LAN IP IP IP 3 IP 2 IP IP IP IP IP 3

3 3.1 LAN ISDN (IP) 2 TCP/UDP IP IP IP IP (Ethernet) Ethernet LAN TCP/UDP LAN Ethernet LAN 2: Ethernet ATM, FDDI, LAN IP IP IP 3 IP 2 IP IP IP IP IP 3 IP 1 (IP) TCP/IP 1 2 2 1 LAN IP C IP 192.168.0.101 192.168.0.104 HUB 100Base-TX 100Mbps UTP Ethernet HUB 192.168.0.101 192.168.0.102 192.168.0.103 192.168.0.104 1: 6 1 3 3.1 LAN ISDN (IP) 2 TCP/UDP IP

More information

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

ランダムウォークの確率の漸化式と初期条件 B L03(2019-04-25 Thu) : Time-stamp: 2019-04-25 Thu 09:16 JST hig X(t), t, t x p(x, t). p(x, t). ( ) L03 B(2019) 1 / 25 : L02-Q1 Quiz : 1 X(3) = 1 10 (3 + 3 + + ( 3)) = 1., E[X(3)] 1. 2 S 2 = 1 10 1 ((3

More information

ランダムウォークの境界条件・偏微分方程式の数値計算

ランダムウォークの境界条件・偏微分方程式の数値計算 B L06(2018-05-22 Tue) : Time-stamp: 2018-05-22 Tue 21:53 JST hig,, 2, multiply transf http://hig3.net L06 B(2018) 1 / 38 L05-Q1 Quiz : 1 M λ 1 = 1 u 1 ( ). M u 1 = u 1, u 1 = ( 3 4 ) s (s 0)., u 1 = 1

More information

データの分布

データの分布 I L01(2016-09-22 Thu) : Time-stamp: 2016-09-27 Tue 11:12 JST hig e LINE@, 4, http://hig3.net () L01 I(2016) 1 / 20 ? 1? 2? () L01 I(2016) 2 / 20 ?,,.,., 1..,. (,, 1, 2 ),.,. () L01 I(2016) 3 / 20 ? I.

More information

double float

double float 2015 3 13 1 2 2 3 2.1.......................... 3 2.2............................. 3 3 4 3.1............................... 4 3.2 double float......................... 5 3.3 main.......................

More information

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l C/C++ 2007 6 18 1 C STL(1) 2 1.1............................................... 2 1.2 stdio................................................ 3 1.3.......................................... 10 2 11 2.1 sizeof......................................

More information

マルコフ連鎖の時間発展の数値計算

マルコフ連鎖の時間発展の数値計算 B L07(206-05-2 Mon : Time-stamp: 206-05-2 Mon 8:4 JST hig http://hig.net ( L07 B(206 / 20 L05-Q TA Prob and Sol:, {, 2}. M = ( 2 2 2.. 2 p(0 = ( 0 p(t. p(0 = 2 ( p(t. ( L07 B(206 2 / 20 M λ, λ 2, u, u

More information

1) // 2) I/O 3) Japan Advanced Institute of Science and Technology 2013/07/26 1

1) // 2) I/O 3) Japan Advanced Institute of Science and Technology 2013/07/26 1 I441 2013/07/26 Dependable Network Innovation Center, Japan Advanced Institute of Science and Technology 1) // 2) I/O 3) Japan Advanced Institute of Science and Technology 2013/07/26 1 1) Comer: Internetworking

More information

カテゴリ変数と独立性の検定

カテゴリ変数と独立性の検定 II L04(2015-05-01 Fri) : Time-stamp: 2015-05-01 Fri 22:28 JST hig 2, Excel 2, χ 2,. http://hig3.net () L04 II(2015) 1 / 20 : L03-S1 Quiz : 1 2 7 3 12 (x = 2) 12 (y = 3) P (X = x) = 5 12 (x = 3), P (Y =

More information

main main Makefile Makefile C.5 Makefile Makefile Makefile A Mech (TA ) 1. Web (http://www.jsk.t.u-tokyo.ac.jp/ iku

main main Makefile Makefile C.5 Makefile Makefile Makefile A Mech (TA ) 1. Web (http://www.jsk.t.u-tokyo.ac.jp/ iku 2008 (mizuuchi@i.u-tokyo.ac.jp) http://www.jsk.t.u-tokyo.ac.jp/ http://www.jsk.t.u-tokyo.ac.jp/ ikuo/enshu/keisanki/ 2008 5 19 6 24 1 2 2.1 my_sound.c, my_sounc.h, play.c, record.c 2 2. 2.2 2.2.1 main

More information

演算増幅器

演算増幅器 ネットワークプログラミング ( 教科書 p.247-312) これまでに作成したプログラムは 1 台のコンピュータ上で動作するものだった 本日はネットワーク上の別のコンピュータで実行しているプログラムと通信をしながら動作するプログラムの作成方法について学ぶ ネットワークプログラミングを高度に使いこなすためには 関連する知識は幅広く求められる 本日からの学習では単純なチャット ( 会話 ) を行うプログラムを題材として

More information

1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() 2 double *a[ ]; double 1 malloc() dou

1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() 2 double *a[ ]; double 1 malloc() dou 1 1.1 C 2 1 double a[ ][ ]; 1 3x3 0 1 3x3 ( ) 0.240 0.143 0.339 0.191 0.341 0.477 0.412 0.003 0.921 1.2 malloc() 2 double *a[ ]; double 1 malloc() double 1 malloc() free() 3 #include #include

More information

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル Instruction Manual Disk No. RE01 6th Edition: November 1999 (YK) All Rights Reserved, Copyright 1996 Yokogawa Electric Corporation 801234567 9 ABCDEF 1 2 3 4 1 2 3 4 1 2 3 4 1 2

More information

1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() malloc 2 #include <stdio.h> #include

1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() malloc 2 #include <stdio.h> #include 1 1.1 C 2 1 double a[ ][ ]; 1 3x3 0 1 3x3 ( ) 0.240 0.143 0.339 0.191 0.341 0.477 0.412 0.003 0.921 1.2 malloc() malloc 2 #include #include #include enum LENGTH = 10 ; int

More information

1 4 2 6 2.1............................. 6 2.2............................... 6 2.3......................... 7 2.4......................... 7 3 8 3.1

1 4 2 6 2.1............................. 6 2.2............................... 6 2.3......................... 7 2.4......................... 7 3 8 3.1 1 UEC UEC http://www.tnlab.ice.uec.ac.jp/daihinmin/ 20061016 1 4 2 6 2.1............................. 6 2.2............................... 6 2.3......................... 7 2.4.........................

More information

I j

I j I j06062 19.5.22 19.5.25 19.5.25 1 1 1 ping 3 2 2 ping 4 3 3 traceroute 5 4 4 netstat 5 4.1 netstat -i............................................. 5 4.2 netstat -r.............................................

More information

実験 6 通信基礎実験 1 目的 ネットワークを通じてデータ転送を行うことを体験的に学ぶために 本実験ではT CP/IPプロトコルを使い ワークステーション間で通信を行うクライアントサーバモデルのプログラムを作成する 2 解説 1 ネットワークとプロトコルネットワーク ( コンピュータネットワーク

実験 6 通信基礎実験 1 目的 ネットワークを通じてデータ転送を行うことを体験的に学ぶために 本実験ではT CP/IPプロトコルを使い ワークステーション間で通信を行うクライアントサーバモデルのプログラムを作成する 2 解説 1 ネットワークとプロトコルネットワーク ( コンピュータネットワーク 実験 6 通信基礎実験 1 目的 ネットワークを通じてデータ転送を行うことを体験的に学ぶために 本実験ではT CP/IPプロトコルを使い ワークステーション間で通信を行うクライアントサーバモデルのプログラムを作成する 2 解説 1 ネットワークとプロトコルネットワーク ( コンピュータネットワーク ) とは2 台以上のコンピュータが何らかの線でつながったものである しかし 線で接続されているだけではコンピュータ間で通信を行うことが出来ず

More information

独立性の検定・ピボットテーブル

独立性の検定・ピボットテーブル II L04(2016-05-12 Thu) : Time-stamp: 2016-05-12 Thu 12:48 JST hig 2, χ 2, V Excel http://hig3.net ( ) L04 II(2016) 1 / 20 L03-Q1 Quiz : 1 { 0.95 (y = 10) P (Y = y X = 1) = 0.05 (y = 20) { 0.125 (y = 10)

More information

第1回 ネットワークとは

第1回 ネットワークとは 1 第 8 回 UDP TCP 計算機ネットワーク 2 L4 トランスポート層 PDU: Protocol Data Unit L4 セグメント L4 ヘッダ データ セグメントデータ最大長 =MSS maximum segment size L3 パケット IP ヘッダ TCP ヘッダ IP データ L2 フレーム イーサヘッダ IP ヘッダ TCP ヘッダ イーサネットデータ イーサトレイラ フレームデータ

More information

I /07/30 Dependable Network Innovation Center, Japan Advanced Institute of Science and Technology

I /07/30 Dependable Network Innovation Center, Japan Advanced Institute of Science and Technology I441 2013/07/30 Dependable Network Innovation Center, Japan Advanced Institute of Science and Technology I/O Japan Advanced Institute of Science and Technology 2013/07/30 1 fork/pthread create I/O Japan

More information

時系列解析と自己回帰モデル

時系列解析と自己回帰モデル B L11(2017-07-03 Mon) : Time-stamp: 2017-07-03 Mon 11:04 JST hig,,,.,. http://hig3.net ( ) L11 B(2017) 1 / 28 L10-Q1 Quiz : 1 6 6., x[]={1,1,3,3,3,8}; (. ) 2 x = 0, 1, 2,..., 9 10, 10. u[]={0,2,0,3,0,0,0,0,1,0};

More information

431 a s a s a s d a s a 10 d s 11 f a 12 g s 13 a 14 a 15

431 a s a s a s d a s a 10 d s 11 f a 12 g s 13 a 14 a 15 431 a s a s a s d a sa 10ds 11fa 12gs 13a 14a 15 a s d f g h a s d 10f 11g a 12h s 13j a 14k s 15 432 433 10 11 12 13 14 15 10 11 12 13 14 15 434 10 11 12 13 14 15 10 11 12 13 14 15 10 11 12 13 14 15 435

More information

1-4 int a; std::cin >> a; std::cout << "a = " << a << std::endl; C++( 1-4 ) stdio.h iostream iostream.h C++ include.h 1-4 scanf() std::cin >>

1-4 int a; std::cin >> a; std::cout << a =  << a << std::endl; C++( 1-4 ) stdio.h iostream iostream.h C++ include.h 1-4 scanf() std::cin >> 1 C++ 1.1 C C++ C++ C C C++ 1.1.1 C printf() scanf() C++ C hello world printf() 1-1 #include printf( "hello world\n" ); C++ 1-2 std::cout

More information

untitled

untitled RPC (( Remote Procedure Call (RPC: Message-Oriented Middleware (MOM) data-streaming =(protocol) A B A B Connection protocol = connection oriented protocol TCP (Transmission Control Protocol) connectionless

More information

44 6 MPI 4 : #LIB=-lmpich -lm 5 : LIB=-lmpi -lm 7 : mpi1: mpi1.c 8 : $(CC) -o mpi1 mpi1.c $(LIB) 9 : 10 : clean: 11 : -$(DEL) mpi1 make mpi1 1 % mpiru

44 6 MPI 4 : #LIB=-lmpich -lm 5 : LIB=-lmpi -lm 7 : mpi1: mpi1.c 8 : $(CC) -o mpi1 mpi1.c $(LIB) 9 : 10 : clean: 11 : -$(DEL) mpi1 make mpi1 1 % mpiru 43 6 MPI MPI(Message Passing Interface) MPI 1CPU/1 PC Cluster MPICH[5] 6.1 MPI MPI MPI 1 : #include 2 : #include 3 : #include 4 : 5 : #include "mpi.h" 7 : int main(int argc,

More information

double 2 std::cin, std::cout 1.2 C fopen() fclose() C++ std::fstream 1-3 #include <fstream> std::fstream fout; int a = 123; fout.open( "data.t

double 2 std::cin, std::cout 1.2 C fopen() fclose() C++ std::fstream 1-3 #include <fstream> std::fstream fout; int a = 123; fout.open( data.t C++ 1 C C++ C++ C C C++ 1.1 C printf() scanf() C++ C 1-1 #include int a; scanf( "%d", &a ); printf( "a = %d\n", a ); C++ 1-2 int a; std::cin >> a; std::cout

More information

para02-2.dvi

para02-2.dvi 2002 2 2002 4 23 : MPI MPI 1 MPI MPI(Message Passing Interface) MPI UNIX Windows Machintosh OS, MPI 2 1 1 2 2.1 1 1 1 1 1 1 Fig. 1 A B C F Fig. 2 A B F Fig. 1 1 1 Fig. 2 2.2 Fig. 3 1 . Fig. 4 Fig. 3 Fig.

More information

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

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧) CM-3G 周辺モジュール拡張技術文書 MS5607 センサ ( 温度 気圧 ) ( 第 1 版 ) Copyright (C)2016 株式会社コンピューテックス 目次 1. はじめに... 1 2. MS5607 について... 1 3. 接続図... 1 4. アプリケーション ソース... 2 5. アプリケーションのコンパイル方法... 7 6. アプリケーションの実行... 8 1. はじめに

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

wide90.dvi

wide90.dvi 12 361 1 (CPU ) Internet TCP/IP TCP/IP TCP/IP Internet ( ) (IP ) ( ) IP 363 364 1990 WIDE IP Internet IP IP ( ) IP Internet IP Internet IP IP IP IP IP IP IP Internet Internet 1.1 2 Internet Internet Internet

More information

mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( )

mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( ) 2008 3 10 1 mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( ) stream FILE ( man ) 40 ( ) %./a.out String : test

More information

広報なんと10月号

広報なんと10月号 2008.10 2 2008.10 3 2008.10 4 2008.10 5 2008.10 6 7 2008.10 8 2008.10 9 2008.10 2008.10 10 2008.10 11 12 2008.10 13 2008.10 2008.10 14 15 2008.10 16 2008.10 2008.10 17 18 2008.10 STAMP 2008.10 19 2008.10

More information

スライド タイトルなし

スライド タイトルなし ファイル入出力 (2) これまでのおさらい ( 入出力 ) これまでの入出力は 入力 scanf 出力 printf キーボードと画面 ( 端末 ) scanf/printf は 書式つき入出力 フォーマットを指定する 標準入出力を対象とする 何もしなければ 標準入出力は キーボードと画面 ストリームという考え方 ストリーム (stream) = データの列 キーボードから打つ文字列 画面に出力される文字列

More information

4 実験結果 // 用意されたヘッダファイル #include < stdio.h> #include < fcntl.h> #include < netdb.h> #include < sys/types.h> #include < sys/socket.h> #include < sys/sta

4 実験結果 // 用意されたヘッダファイル #include < stdio.h> #include < fcntl.h> #include < netdb.h> #include < sys/types.h> #include < sys/socket.h> #include < sys/sta 実験 6 通信基礎実験 2 1 目的 ネットワークを通じてデータ転送を行うことを体験的に学ぶために 本実験ではT CP/IPプロトコルを使い ワークステーション間で通信を行うクライアントサーバモデルのプログラムを作成する 今回は文字データだけでなく 音声データも使う事により より実践的なプログラミングを行う 2 解説 前実験と同様なので省略する 3 実験 実験 1で作成したプログラムを利用して マイクから入力した音声信号をサーバへ送信するクライアントプログラムを作成せよ

More information

Microsoft Word - .....J.^...O.|Word.i10...j.doc

Microsoft Word - .....J.^...O.|Word.i10...j.doc P 1. 2. R H C H, etc. R' n R' R C R'' R R H R R' R C C R R C R' R C R' R C C R 1-1 1-2 3. 1-3 1-4 4. 5. 1-5 5. 1-6 6. 10 1-7 7. 1-8 8. 2-1 2-2 2-3 9. 2-4 2-5 2-6 2-7 10. 2-8 10. 2-9 10. 2-10 10. 11. C

More information

分散分析・2次元正規分布

分散分析・2次元正規分布 2 II L10(2016-06-30 Thu) : Time-stamp: 2016-06-30 Thu 13:55 JST hig F 2.. http://hig3.net ( ) L10 2 II(2016) 1 / 24 F 2 F L09-Q1 Quiz :F 1 α = 0.05, 2 F 3 H 0, : σ 2 1 /σ2 2 = 1., H 1, σ 2 1 /σ2 2 1. 4

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

2変量データの共分散・相関係数・回帰分析

2変量データの共分散・相関係数・回帰分析 2, 1, Excel 2, Excel http://hig3.net ( ) L04 2 I(2017) 1 / 24 2 I L04(2017-10-11 Wed) : Time-stamp: 2017-10-10 Tue 23:02 JST hig L03-Q1 L03-Q2 Quiz : 1.6m, 0.0025m 2, 0.05m. L03-Q3 Quiz : Sx 2 = 4, S x

More information

1.ppt

1.ppt /* * Program name: hello.c */ #include int main() { printf( hello, world\n ); return 0; /* * Program name: Hello.java */ import java.io.*; class Hello { public static void main(string[] arg)

More information

e164.arpa DNSSEC Version JPRS JPRS e164.arpa DNSSEC DNSSEC DNS DNSSEC (DNSSEC ) DNSSEC DNSSEC DNS ( ) % # (root)

e164.arpa DNSSEC Version JPRS JPRS e164.arpa DNSSEC DNSSEC DNS DNSSEC (DNSSEC ) DNSSEC DNSSEC DNS ( ) % # (root) 1.2.0.0.1.8.e164.arpa DNSSEC Version 1.0 2006 3 7 JPRS JPRS 1.2.0.0.1.8.e164.arpa DNSSEC DNSSEC DNS DNSSEC (DNSSEC ) DNSSEC DNSSEC DNS ( ) % # (root) BIND DNS 1. DNSSEC DNSSEC DNS DNS DNS - 1 - DNS DNS

More information

2008 ( 13 ) C LAPACK 2008 ( 13 )C LAPACK p. 1

2008 ( 13 ) C LAPACK 2008 ( 13 )C LAPACK p. 1 2008 ( 13 ) C LAPACK LAPACK p. 1 Q & A Euler http://phase.hpcc.jp/phase/mppack/long.pdf KNOPPIX MT (Mersenne Twister) SFMT., ( ) ( ) ( ) ( ). LAPACK p. 2 C C, main Asir ( Asir ) ( ) (,,...), LAPACK p.

More information

PostgreSQL 解析ドキュメント

PostgreSQL 解析ドキュメント postmaster Unix postmaster postmaster postmaster postmaster DB BootstrapMain() 7.4.2 postmaster [ 2 ] Unix [ 3 ] Unix ( ) (SIGKILL, SIGSTOP) abort exit abort core (core dump) exit core dump ( ) [ 4 ] [

More information

untitled

untitled 1522800T-B FeliSafe /Lite NW Ver.5.0 2 2010 7 8 Yutaka Electric Mfg.Co.,Ltd. Windows NT / 2000 / XP / 2003 / Vista / 2008 / 7 Windows 95 / 98 / 98SE / ME Microsoft Corporation FeliSafe 1. 2. 3. 4. 5. 6.

More information

CEATEC報告_和文04-05 [更新済み]

CEATEC報告_和文04-05 [更新済み] Contents 01 02 02 03 05 11 13 14 22 24 27 29 30 Outline 1 Message Opening Event 2 Exhibition Configuration 3 Exhibition Configuration 4 Exhibits Recent Trend 5 Exhibits Recent Trend 6 7 Exhibits Recent

More information

comment.dvi

comment.dvi ( ) (sample1.c) (sample1.c) 2 2 Nearest Neighbor 1 (2D-class1.dat) 2 (2D-class2.dat) (2D-test.dat) 3 Nearest Neighbor Nearest Neighbor ( 1) 2 1: NN 1 (sample1.c) /* -----------------------------------------------------------------

More information

インテル® スレッドチェッカー 3.1 Linux* 版

インテル® スレッドチェッカー 3.1 Linux* 版 ... 2 1.... 3 2.... 5 3.... 7 4.... 10 Intel's Terms and Conditions of Sale IntelIntel Intel Corporation * 2007 Intel Corporation. 313445JA 001 2006 5 313445 JA 002 2006 9 2 : 313445-002JA 1. primes 1

More information

1 UEC UEC http://www.tnlab.ice.uec.ac.jp/daihinmin/ 20061028 1 4 2 6 2.1.......................... 6 2.1.1.............................. 6 2.1.2......................... 6 2.1.3...........................

More information

ソケット API プロセス間通信の汎用 API プロセス : プログラムのひとつの単位 ex)./a.out とかやると 1 つのプロセスが立ち上がる ソケット API IPv4 IPv6 UNIX domain (UNIX 計算機内プロセス間通信 ) 本実験では IPv4 の TCP および UD

ソケット API プロセス間通信の汎用 API プロセス : プログラムのひとつの単位 ex)./a.out とかやると 1 つのプロセスが立ち上がる ソケット API IPv4 IPv6 UNIX domain (UNIX 計算機内プロセス間通信 ) 本実験では IPv4 の TCP および UD ソケットプログラミング ソケット API プロセス間通信の汎用 API プロセス : プログラムのひとつの単位 ex)./a.out とかやると 1 つのプロセスが立ち上がる ソケット API IPv4 IPv6 UNIX domain (UNIX 計算機内プロセス間通信 ) 本実験では IPv4 の TCP および UDP を, ソケット API を通じて行う クライアントとサーバ 電話を用いた比喩

More information

55 7 Java C Java TCP/IP TCP/IP TCP TCP_RO.java import java.net.*; import java.io.*; public class TCP_RO { public static void main(string[] a

55 7 Java C Java TCP/IP TCP/IP TCP TCP_RO.java import java.net.*; import java.io.*; public class TCP_RO { public static void main(string[] a 55 7 Java C Java TCP/IP TCP/IP 7.1 7.1.1 TCP TCP_RO.java import java.net.*; import java.io.*; public class TCP_RO { public static void main(string[] argv) { Socket readsocket = new Socket(argv[0], Integer.parseInt(argv[1]));

More information

r4.dvi

r4.dvi 16 4 2016.5.11 1 1.1 :? PC LAN Web?? ( ) [4] [5] my PC [2] congested service [1]? [3] 1: LAN LAN ( )[1] LAN ( ) PC ( )[2] Web ( )[3] ping ( ) ( )[4] SSL ( ) ( / / )[5] 1 1.2 (multiple layered-structure)

More information

平成27年度三菱重工グループ保険 フルガードくん(シニア)

平成27年度三菱重工グループ保険 フルガードくん(シニア) TEL 0120-004-443 TEL 045-200-6560 TEL 042-761-2328 TEL 0120-539-022 TEL 042-762-0535 TEL 052-565-5211 TEL 077-552-9161 TEL 0120-430-372 TEL 0120-45-9898 TEL 0120-63-0051 TEL 0120-252-892 TEL 083-266-8041

More information

統計的仮説検定とExcelによるt検定

統計的仮説検定とExcelによるt検定 I L14(016-01-15 Fri) : Time-stamp: 016-01-15 Fri 14:03 JST hig 1,,,, p, Excel p, t. http://hig3.net ( ) L14 Excel t I(015) 1 / 0 L13-Q1 Quiz : n = 9. σ 0.95, S n 1 (n 1)

More information

2004

2004 2008 3 20 400 1 1,222 7 1 2 3 55.8 54.8 3 35.8 6 64.0 50.5 93.5 1 1,222 1 1,428 1 1,077 6 64.0 52.5 80.5 56.6 81.5 30.2 1 2 3 7 70.5 1 65.6 2 61.3 3 51.1 1 54.0 2 49.8 3 32.0 68.8 37.0 34.3 2008 3 2 93.5

More information

WinHPC ppt

WinHPC ppt MPI.NET C# 2 2009 1 20 MPI.NET MPI.NET C# MPI.NET C# MPI MPI.NET 1 1 MPI.NET C# Hello World MPI.NET.NET Framework.NET C# API C# Microsoft.NET java.net (Visual Basic.NET Visual C++) C# class Helloworld

More information

目次 1. DB 更新情報受信 SW 仕様書 構成および機能 全体の構成 DB 更新情報受信 SW の機能 ソフトウェアの設計仕様 DB 更新情報受信 SW の仕様 資料編... 5

目次 1. DB 更新情報受信 SW 仕様書 構成および機能 全体の構成 DB 更新情報受信 SW の機能 ソフトウェアの設計仕様 DB 更新情報受信 SW の仕様 資料編... 5 書類トレースシステム DigiTANAlog メインサーバマシン DB 更新情報受信 SW 仕様書 Create on 良知洋志 (RACHI, Hiroshi) Date: 2006/02/08 Last Update: 2006/02/15 目次 1. DB 更新情報受信 SW 仕様書... 2 1-1. 構成および機能...2 1-1-1. 全体の構成...2 1-1-2. DB 更新情報受信

More information

web07.dvi

web07.dvi 93 7 MATLAB Octave MATLAB Octave MAT MATLAB Octave copyright c 2004 Tatsuya Kitamura / All rights reserved. 94 7 7.1 UNIX Windows pwd Print Working Directory >> pwd ans = /home/kitamura/matlab pwd cd Change

More information

TCP UDP TCP UDP send()sendto()sendmsg() recv()recvfrom()recvmsg() OS Passive Active TCP UDP IP TCP UDP MTAMail Transf

TCP UDP TCP UDP send()sendto()sendmsg() recv()recvfrom()recvmsg() OS Passive Active TCP UDP IP TCP UDP MTAMail Transf 3 -- 7 2011 2 TCPUDP APIApplication Programming Interface BSD UNIX C System V UNIX XTIX /Open Transport Interface XTI TCP/IP ISO OSI XTI TCP/IP OSI TCP UDP API API API API UNIX Windows 7-1 TCP UDP 7-2

More information

ソフトウェア開発実践セミナー ネットワークの基礎と UNIX ネットワークプログラミング 金子勇 土村展之 情報理工学系研究科数理情報学専攻 2002 年 11 月 6 日 ( 第 4

ソフトウェア開発実践セミナー ネットワークの基礎と UNIX ネットワークプログラミング 金子勇 土村展之 情報理工学系研究科数理情報学専攻 2002 年 11 月 6 日 ( 第 4 ソフトウェア開発実践セミナー ネットワークの基礎と UNIX ネットワークプログラミング 金子勇 kaneko@ipl.t.u-tokyo.ac.jp 土村展之 tutimura@mist.t.u-tokyo.ac.jp 情報理工学系研究科数理情報学専攻 2002 年 11 月 6 日 ( 第 4 回 ) 今回 ネットワークプログラミングの基礎 UNIX + C 言語によるソケットプログラミング 全体の流れ

More information

橡matufw

橡matufw 3 10 25 3 18 42 1 2 6 2001 8 22 3 03 36 3 4 A 2002 2001 1 1 2014 28 26 5 9 1990 2000 2000 12 2000 12 12 12 1999 88 5 2014 60 57 1996 30 25 205 0 4 120 1,5 A 1995 3 1990 30 6 2000 2004 2000 6 7 2001 5 2002

More information

O

O 11 2 1 2 1 1 2 1 80 2 160 3 4 17 257 1 2 1 2 3 3 1 2 138 1 1 170 O 3 5 1 5 6 139 1 A 5 2.5 A 1 A 1 1 3 20 5 A 81 87 67 A 140 11 12 2 1 1 1 12 22 1 10 1 13 A 2 3 2 6 1 B 2 B B B 1 2 B 100 B 10 B 3 3 B 1

More information

プログラミング基礎

プログラミング基礎 C プログラミング 演習 アルゴリズム基礎論 演習 第 10 回 今後の予定 12/22( 月 ) 期末試験 (60 分間 ) 場所 :A1611 時間 :16:20~17:20 課題の最終提出締切 :12/19( 金 ) これ以降の新規提出は評価されない 12/22までに最終状況を提示するので, 提出したのに や になってる人は自分の提出内容や提出先を再確認した上で12/26までに問い合わせること

More information

memo

memo 数理情報工学演習第一 C ( 第 12 回 ) 2016/07/11 DEPARTMENT OF MATHEMATICAL INFORMATICS 1 今日の内容 : ファイルの入出力 コマンドライン引数 2 分探索 クイックソート ( ライブラリ ) 文字列検索 2 ファイル操作の手続き : ファイル操作 ファイルからのデータ読み込み ファイルへのデータ書き出し 基本的な手順 読みこむ / 書き出すファイルを開く

More information

Original : Hello World! (0x0xbfab85e0) Copy : Hello World! (0x0x804a050) fgets mstrcpy malloc mstrcpy (main ) mstrcpy malloc free fgets stream 1 ( \n

Original : Hello World! (0x0xbfab85e0) Copy : Hello World! (0x0x804a050) fgets mstrcpy malloc mstrcpy (main ) mstrcpy malloc free fgets stream 1 ( \n 2008 3 10 1 mstrcpy char *mstrcpy(const char *src); mstrcpy malloc (main free ) stdio.h fgets char *fgets(char *s, int size, FILE *stream); s size ( ) stream FILE ( man ) 40 ( ) %./a.out String : test

More information

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」 ALTIMA Company, MACNICA, Inc Nios II HAL API Modular Scatter-Gather DMA Core Ver.17.1 2018 8 Rev.1 Nios II HAL API Modular Scatter-Gather DMA Core...3...3...4... 4... 5 3-2-1. msgdma... 6 3-2-2. On-Chip

More information

I J

I J I 065763J 8 7 7 31 jikken/ +----- accumulation_demupa.c +----- accumulation_rain.c +----- frequency_demupa.c +----- frequency_rain.c +----- go.sh +----- graph_maker.sh +----- mesure-ryudai/ 2007/4/1 2007/6/30

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

±é½¬£²¡§£Í£Ð£É½éÊâ

±é½¬£²¡§£Í£Ð£É½éÊâ 2012 8 7 1 / 52 MPI Hello World I ( ) Hello World II ( ) I ( ) II ( ) ( sendrecv) π ( ) MPI fortran C wget http://www.na.scitec.kobe-u.ac.jp/ yaguchi/riken2012/enshu2.zip unzip enshu2.zip 2 / 52 FORTRAN

More information

Microsoft Word - IPC-intro.docx

Microsoft Word - IPC-intro.docx プロセス間通信 ( サーバー クライアント ) について同じコンピュータで動いている複数のプロセス ( 実行中のプログラムのこと ) もしくは異なるコンピュータで動いている複数のプロセスの間の通信 ( 情報の受け渡し ) のための方法ここでは 一つのプロセスをサーバー 他のプロセスをクライアントとする方法について述べる サーバーは文字通り クライアントからの要求を受けて何らかの仕事をする 受け のプロセス

More information

A/B WWW MTA/MSP sendmail POP/IMAP apache WWW 1 1 sendmail uw imap apache WWW host host subnet1: /24 IF1: router & server mail and

A/B WWW MTA/MSP sendmail POP/IMAP apache WWW 1 1 sendmail uw imap apache WWW host host subnet1: /24 IF1: router & server mail and A/B WWW MTA/MSP sendmail POP/IMAP apache WWW 1 1 sendmail uw imap apache WWW host host subnet1: 192.168.1/24 IF1:192.168.1.1 router & server mail and WWW IF2:192.168.0.32 subnet2: 192.168.0/24 1: 1 2 iep.sie.dendai.ac.jp

More information

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology I117 8 1 School of Information Science, Japan Advanced Institute of Science and Technology : CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and

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

CEATEC報告_和文02-03 [更新済み]

CEATEC報告_和文02-03 [更新済み] Contents 01 02 03 04 06 11 14 20 26 30 31 32 Outline Message Opening Event Exhibit Categories/ Floor Map 1F Hall 8 Hall 7 Hall 6 Hall 5 Hall 4 Hall 3 Hall 2 Hall 1 201 2F 2F 1F 301 302 303 304 CEATEC

More information

Dec , IS p. 1/60

Dec , IS p. 1/60 Dec 08 2007, IS p. 1/60 Dec 08 2007, IS p. 2/60 Plan of Talk (LDAP) (CAS) (IdM) Dec 08 2007, IS p. 3/60 Dec 08 2007, IS p. 4/60 .. Dec 08 2007, IS p. 5/60 Dec 08 2007, IS p. 6/60 Dec 08 2007, IS p. 7/60

More information

Netcommunity SYSTEM X7000 IPコードレス電話機 取扱説明書

Netcommunity SYSTEM X7000 IPコードレス電話機 取扱説明書 4 5 6 7 8 9 . 4 DS 0 4 5 4 4 4 5 5 6 7 8 9 0 4 5 6 7 8 9 4 5 6 4 0 4 4 4 4 5 6 7 8 9 40 4 4 4 4 44 45 4 6 7 5 46 47 4 5 6 48 49 50 5 4 5 4 5 6 5 5 6 4 54 4 5 6 7 55 5 6 4 56 4 5 6 57 4 5 6 7 58 4

More information

.A. D.S

.A. D.S 1999-1- .A. D.S 1996 2001 1999-2- -3- 1 p.16 17 18 19 2-4- 1-5- 1~2 1~2 2 5 1 34 2 10 3 2.6 2.85 3.05 2.9 2.9 3.16 4 7 9 9 17 9 25 10 3 10 8 10 17 10 18 10 22 11 29-6- 1 p.1-7- p.5-8- p.9 10 12 13-9- 2

More information

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1:

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1: 005 9 7 1 1.1 1 Hello World!! 5 p r i n t f ( H e l l o World!! \ n ) ; 7 return 0 ; 8 } 1: 1 [ ] Hello World!! from Akita National College of Technology. 1 : 5 p r i n t f ( H e l l o World!! \ n ) ;

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

曲面のパラメタ表示と接線ベクトル

曲面のパラメタ表示と接線ベクトル L11(2011-07-06 Wed) :Time-stamp: 2011-07-06 Wed 13:08 JST hig 1,,. 2. http://hig3.net () (L11) 2011-07-06 Wed 1 / 18 ( ) 1 V = (xy2 ) x + (2y) y = y 2 + 2. 2 V = 4y., D V ds = 2 2 ( ) 4 x 2 4y dy dx =

More information

関数のグラフを描こう

関数のグラフを描こう L05(2010-05-07) 1 2 hig3.net ( ) L05(2010-05-07) 1 / 16 #i n c l u d e double f ( double x ) ; i n t main ( void ){ i n t n ; i n t nmax=10; double x ; double s =0.0; } x = 1.0; s=s+x ;

More information