1 1.1 *1 1. sep1.cpp main() sep.cpp separate() *1 GNOME KDE 3

Size: px
Start display at page:

Download "1 1.1 *1 1. sep1.cpp main() sep.cpp separate() *1 GNOME KDE 3"

Transcription

1 C/C

2 1 1.1 *1 1. sep1.cpp main() sep.cpp separate() *1 GNOME KDE 3

3 sep1.cpp 5 e x t e r n i n t s e p a r a t e ( v o i d ) ; 6 7 i n t main ( v o i d ) 8 { 9 cout << s e p a r a t e ( ) << e n d l ; 10 } sep.cpp 1 i n t s e p a r a t e ( v o i d ) { 3 r e t u r n ; } gcc g++ -o sep.exe sep1.cpp sep.cpp bcc3 bcc3 -esep.exe sep1.cpp sep.cpp sep.exe 1..1 extern sep1.cpp 5 separate() extern separate() * * C++ C 3

4 extern *3 sep1.cpp sep.cpp sep1.cpp sep.cpp separate() 5 separate() sep1.cpp extern sep1 sep.cpp 1.. sep1.cpp separate() (sep.cpp) separate() separate() sep1.cpp sep.cpp 3 sep1.cpp sep.cpp C++ (overload) overload.cpp 5 v o i d hage ( v o i d ) 6 { 7 cout << v o i d h a g e ( ) << e n d l ; 8 } 9 10 v o i d hage ( i n t i ) 11 { 1 cout << i n t h a g e ( ) : i << e n d l ; *3 extern

5 13 } 1 15 v o i d hage ( s t r i n g s ) 16 { 17 cout << s t r i n g h a g e ( ) : << s << e n d l ; 18 } 19 0 i n t main ( v o i d ) 1 { hage ( ) ; // hage ( v o i d ) 3 hage ( 1 ) ; // hage ( i n t ) hage ( ) ; // hage ( s t r i n g ) 5 } separate() ( ) global1.cpp 5 e x t e r n v o i d h i g e ( v o i d ) ; 5

6 6 7 i n t g i = 10000; // 8 9 v o i d hoge ( v o i d ) // 10 { 11 cout << hoge << e n d l ; 1 } 13 1 i n t main ( v o i d ) 15 { 16 hoge ( ) ; 17 h i g e ( ) ; 18 cout << g i << e n d l ; 19 } global.cpp 5 e x t e r n i n t g i ; // g i 6 e x t e r n v o i d hoge ( v o i d ) ; // hoge ( ) 7 8 v o i d h i g e ( v o i d ) 9 { 10 hoge ( ) ; 11 cout << g i << e n d l ; 1 g i = 13; 13 } / 6

7 / global i.cpp 1 / 3 / 5 #i n c l u d e <iostream > 6 7 u s i n g namespace s t d ; 8 9 i n t i ; // i // 1 e x t e r n v o i d hoge ( v o i d ) ; // e x t e r n v o i d hoge ( v o i d ) 13 1 i n t main ( v o i d ) 15 { 16 / hoge ( ) 19 / 0 f o r ( i =0; i <100; i++) { 1 cout << i << e n d l ; hoge ( ) ; 3 } } 5 6 v o i d hoge ( v o i d ) 7 { 8 / 9 30 i m a i n ( ) 31 i

8 3 / 33 f o r ( i =0; i <10; i++) { 3 cout << hagehage << e n d l ; 35 } 36 } // hoge ( ) 1.3. extern / static / static1.cpp 5 6 s t a t i c i n t g i ; // 7 8 // 9 s t a t i c v o i d h i g e ( v o i d ) ; // s t a t i c i n t hoge ( v o i d ) // 1 { 13 h i g e ( ) ; 1 r e t u r n g i ; 15 } s t a t i c v o i d h i g e ( v o i d ) // 18 { 19 g i ++; 0 } 1 8

9 i n t main ( v o i d ) 3 { f o r ( i n t i =0; i <100; i++) { 5 cout << hoge ( ) << e n d l ; 6 } 7 } static1.cpp static.cpp 1 / 3 / 5 e x t e r n i n t g i ; // 6 e x t e r n i n t hoge ( v o i d ) ; // 7 8 v o i d f o o b a r ( v o i d ) { 9 g i ++; // 10 hoge ( ) ; // 11 } static fscope.cpp 1 v o i d f s c o p e ( v o i d ) { 9

10 3 i n t i ; // t y p e d e f i n t u i n t 3 ; // 5 } 1.3. if while for switch block.cpp 5 i n t main ( v o i d ) 6 { 7 s t r i n g s = hage ; 8 i n t i= 000; 9 10 { 11 s t r i n g s = ; 1 cout << s << e n d l ; 13 } // s 1 15 f o r ( i n t i =0; i <100; i++) 16 cout << i << e n d l ; // i f o r ( i n t i =0; i <100; i++) { // i 19 t y p e d e f i n t i n t 3 ; // 0 i n t 3 x =0; // 1 cout << i + x << e n d l ; } 3 cout << s << e n d l ; // hage cout << i << e n d l ; //

11 5 } 1. / header1.cpp 1 #i n c l u d e header. h 3 i n t main ( v o i d ) 5 { 6 hoge ( ) ; 7 } header.cpp #i n c l u d e header. h 3 u s i n g namespace s t d ; 5 6 v o i d hoge ( v o i d ) 7 { 8 cout << << e n d l ; 9 } 11

1 CUI CUI CUI 1.1 cout cin 1.1.1 redirect.cpp #i n c l u d e <s t r i n g > 3 using namespace std ; 5 6 i n t main ( void ) 7 { 8 s t r i n g s ; 10 c

1 CUI CUI CUI 1.1 cout cin 1.1.1 redirect.cpp #i n c l u d e <s t r i n g > 3 using namespace std ; 5 6 i n t main ( void ) 7 { 8 s t r i n g s ; 10 c C/C++ 007 6 11 1 CUI 1.1....................................... 1................................ 3 1.3 argc argv................................. 5.1.............................................. 5...............................................

More information

... 3... 3... 3... 3... 4... 7... 10... 10... 11... 12... 12... 13... 14... 15... 18... 19... 20... 22... 22... 23 2

... 3... 3... 3... 3... 4... 7... 10... 10... 11... 12... 12... 13... 14... 15... 18... 19... 20... 22... 22... 23 2 1 ... 3... 3... 3... 3... 4... 7... 10... 10... 11... 12... 12... 13... 14... 15... 18... 19... 20... 22... 22... 23 2 3 4 5 6 7 8 9 Excel2007 10 Excel2007 11 12 13 - 14 15 16 17 18 19 20 21 22 Excel2007

More information

http://banso.cocolog-nifty.com/ 100 100 250 5 1 1 http://www.banso.com/ 2009 5 2 10 http://www.banso.com/ 2009 5 2 http://www.banso.com/ 2009 5 2 http://www.banso.com/ < /> < /> / http://www.banso.com/

More information

2009 SEP. No.664 9 18 100460345 209710798 %0.11 3350955 9750799 12.1 0.93 100350 19 100600453 209700800 %0.03 3200065 9740873 11.0 0.98 90490 20 100750364 209680396 %0.81 321 844 978 591 11.6

More information

n=360 28.6% 34.4% 36.9% n=360 2.5% 17.8% 19.2% n=64 0.8% 0.3% n=69 1.7% 3.6% 0.6% 1.4% 1.9% < > n=218 1.4% 5.6% 3.1% 60.6% 0.6% 6.9% 10.8% 6.4% 10.3% 33.1% 1.4% 3.6% 1.1% 0.0% 3.1% n=360 0% 50%

More information

項 目

項 目 1 1 2 3 11 4 6 5 7,000 2 120 1.3 4,000 04 450 < > 5 3 6 7 8 9 4 10 11 5 12 45 6 13 E. 7 B. C. 14 15 16 17 18 19 20 21 22 23 8 24 25 9 27 2 26 6 27 3 1 3 3 28 29 30 9 31 32 33 500 1 4000 0 2~3 10 10 34

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

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb " # $ % & ' ( ) * +, -. / 0 1 2 3 4 5 6 7 8 9 : ; < = >? @ 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 " # $ % & ' ( ) * + , -. / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B

More information

untitled

untitled 280 200 5 7,800 6 8,600 28 1 1 18 7 8 2 ( 31 ) 7 42 2 / / / / / / / / / / 1 3 (1) 4 5 3 1 1 1 A B C D 6 (1) -----) (2) -- ()) (3) ----(). ()() () ( )( )( )( ) ( ) ( )( )( )( ) () (). () ()() 7 () ( ) 1

More information

2

2 1 2 119 119 5 500 1 30 102 1 113 3 4 120 2 3 113 5 230 1 1 3 4 5 6 7 8 1 [email protected] 2 9 3 ( ) 10 11 12 4 1. 2. 3. 4. 13 5 14 15 16 17 18 19 [ ] [ ] 20 [ ] [ ] [ ] 21 22 [ ] 23 < > < >

More information

1 1 2 65

1 1 2 65 3 3 2000 6 14 2 30 4 2 1 1 2 65 1!?? < > 3 2 2 100 19 19 100 100 100 < > 19 2 2 2 2 < > 2000 2000 50 1945 5 50 1945 5 45 20 20 4 1945 4 5 5 5 100 50 20 5 2 20 5 20 5 5 6 20 6 19 5 5 6 5 6 2 20 6 21

More information

untitled

untitled 1 ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 2 ( ) 1 ( ) ( ) ( ) ( ) 3 ( ) a b ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 4 ( ) ( ) ( ) ( ) ( ) ( ) < > 5 a b c d ( ) ( ) ( ) ( ) ( ) 18 73 ( ) ( ) a b 6 6 c ( ) (

More information

ICT 5,293 (2012 3 31 ) http://www.nttcom.co.jp/employ/recruit/ 4. IT IT / / IT / / . BB http://recruit.softbank.jp/graduate/ 3-7-1 28 29 URL.http://www.nliro.or.jp 2014 . ( ) 10 ( ) < > / < > . ( )

More information

2

2 1 2 10 14 945 3000 2012 3 10 4 5 6 7 8 9 10 11 12 2011 11 21 12301430 (1215 ) 13 6 27 17 () ( ) ( ) (112360) 2 (1157) (119099) ((11861231) )( ) (11641205) 3 (1277) 3 4 (1558) (1639)() 12 (1699)( ) 7 (1722)

More information

)+, $( -++ $ )* "& $ "$...( # / $ & ' / $# && &# & ' '' '( '# ' "& / $ $

)+, $( -++ $ )* & $ $...( # / $ & ' / $# && &# & ' '' '( '# ' & / $ $ !"#!$#!"# $! %&#'& %&#( %&#'& )* )* '& ( )+, $( -++ $ )* "& $ "$...( # / $ & ' / $# && &# & ' '' '( '# ' "& / $ $ " $& 0 $ '*# & 1 2 1# 2 1 "2 $ 3&$ 4$2 3&& 1 2 1# 2 1 "2 1& 2 ' ( 訳 者 注 # 番 号 が 大 きくなるほど

More information

2 KH Coder KH Coder KH Coder KH Coder

2 KH Coder KH Coder KH Coder KH Coder Keywords : 1 2 KH Coder KH Coder KH Coder KH Coder 2.1 KH Coder 1 ........,,,..... .. 2 - - - - - - - - - - - - 2.2 3, ......... - - - - - - 4 3 3.1.. 1 - / - - - - - 2 - ....... a . ... 3.2 < >, Sunday

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

untitled

untitled II yacc 005 : 1, 1 1 1 %{ int lineno=0; 3 int wordno=0; 4 int charno=0; 5 6 %} 7 8 %% 9 [ \t]+ { charno+=strlen(yytext); } 10 "\n" { lineno++; charno++; } 11 [^ \t\n]+ { wordno++; charno+=strlen(yytext);}

More information

38

38 3 37 38 3.1. 3.1.1. 3.1-1 2005 12 5 7 2006 5 31 6 2 2006 8 10 11 14 2006 10 18 20 3.1-1 9 00 17 3 3.1.2. 3.1-2 3.1-1 9 9 3.1-2 M- M-2 M-3 N- N-2 N-3 S- S-2 S-3 3.1.2.1. 25 26 3.1.2.2. 3.1-3 25 26 39 3.1-1

More information

- 1 - - 2 - 320 421 928 1115 12 8 116 124 2 7 4 5 428 515 530 624 921 1115 1-3 - 100 250-4 - - 5 - - 6 - - 7 - - 8 - - 9 - & & - 11 - - 12 - GT GT - 13 - GT - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - -

More information

C , C++ C C++ C++ C cpprefjp - C++ 1 C CUI 2.1 donothing.cpp 1

C , C++ C C++ C++ C cpprefjp - C++ 1 C CUI 2.1 donothing.cpp 1 C++ 2018 7 1, 2018 11 4 http://nalab.mind.meiji.ac.jp/~mk/labo/text/nantoka-c++/ 1 C++ C C++ C++ C cpprefjp - C++ 1 C++17 2 2 CUI 2.1 donothing.cpp 1 /* 2 * donothing.cpp 3 */ 4 5 int main() 6 7 return

More information

UN-15TD6 UN-10TD6 SQW0694 1 2 3 4 5 6 7 8 1 2 9 : 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 1 2 1 00:00 1 2 3 4 5 6 7 0 8 9 1 2 02:30 2 1 2 3 4 5 6 5 1 2 3 4 5 1 2 1 2 1 2 1 2 1 1 2 3

More information

32 1 7 1 20 ( ) [18 30] [21 00] 2 3 ( ( ) ) ( ) 4 1 2 95 ( 7 3 2 ) 1 2 3 2 a b

32 1 7 1 20 ( ) [18 30] [21 00] 2 3 ( ( ) ) ( ) 4 1 2 95 ( 7 3 2 ) 1 2 3 2 a b 31 1 7 1 ( ) [18 35] [20 40] 2 3 ( ( ) ) ( ) 4 1 2 1 22 1 2 a b T T A c d 32 1 7 1 20 ( ) [18 30] [21 00] 2 3 ( ( ) ) ( ) 4 1 2 95 ( 7 3 2 ) 1 2 3 2 a b 7 1 ( 34 ) 1 7 2 13 ( ) [18 20] [20 00] 2 4 7 3

More information

卒論 提出用ファイル.doc

卒論 提出用ファイル.doc 11 13 1LT99097W (i) (ii) 0. 0....1 1....3 1.1....3 1.2....4 2....7 2.1....7 2.2....8 2.2.1....8 2.2.2....9 2.2.3.... 10 2.3.... 12 3.... 15 Appendix... 17 1.... 17 2.... 19 3.... 20... 22 (1) a. b. c.

More information

解きながら学ぶC++入門編

解きながら学ぶC++入門編 !... 38!=... 35 "... 112 " "... 311 " "... 4, 264 #... 371 #define... 126, 371 #endif... 369 #if... 369 #ifndef... 369 #include... 3, 311 #undef... 371 %... 17, 18 %=... 85 &... 222 &... 203 &&... 40 &=...

More information

森林火災保険ご契約のしおり

森林火災保険ご契約のしおり 1 0120-25-7474 2 20 3 50 50 50 20 20 80 1 4 30 125cc 5 500 30 10 20 20 300 72 301,000 6 19 7 19 19 14 32 12 8 13 15 16 16 1820 17 20 9 26 30 180 90 22118 60 180 24205 28 80 10 500 500 500 20 20 20 300

More information

TV-W8800

TV-W8800 TV-W8800 153-8654 1-4-1 2000 < 00D00F0A01 > < CRA2996-A > q w e r q w e r t y u i o!0!1!2!3!4!6!5 2!7 t q!3 3 4 5 !3 z x c v!3 b n m 6 z x c v b n m 7 !3!8 8 9 !3!8 t 10 q!9 VCR 1 2 11 12 q!8!3 w 13 !3

More information

企業費用・利益総合保険_平成27年10月_損保ジャパン日本興亜

企業費用・利益総合保険_平成27年10月_損保ジャパン日本興亜 27 10 P 3 1 1 2 3 7 12 10 8 50 75 55 50 3.5 9 5.5 4 120 60 25 15 2.3 2 6,800 3,300 11,500 2.350 1.5 275 3,740 6,80055 P 3 1,650 3,30050 2 1 2 1 1 2 3 4 5 1 6 7 2 2 1 11024 2 1 3 2 3 1 2 3 125cc. 1 2 1

More information

橡■リリース3333333_P1_.PDF

橡■リリース3333333_P1_.PDF 1 15 17 15 1. 17/3 15/3 17/3 1,600 < > 15/3 17/3 15/3 17/3 0.72 0.77 0.69 0.81 79.71 80 76.56 78 ( ) 59.73 52 59.33 50 7,904 1,600 7,392 1,150 9.32 9.98 13,169 4,000 11,672 3,000 2 3.6 26.7 10 283 5,600

More information

CNDV-R400

CNDV-R400 DVDSeries 2 3 4 5 6 7 8 9 10 1 11 12 1 13 14 1 15 1. 2. 16 1 17 18 1 19 1. 4. 2. 3. 5. 20 21 22 2 23 24 2 25 26 1. 1. 2 2. 2. 27 1. 1. 2. 3. 2. 4. 3. 28 1. 2. 2 1. 2. 1. 1. 2 29 30 31 32 1. 2. 3. 4. 3

More information

2

2 Outlook Express6 C NPO NEXTDAY 1 2 Outlook Express 3 Outlook Express (I) W OK OK 4 Outlook Express 1 (B) 5 Re Re (I) Outlook Express 6 (T):-> OK W CC CC Cc(C):-> OK BCC (A) BCC Bcc(B):-> OK 7 (p) w 8 HTML

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

untitled

untitled ...1... 3 1... 3 2... 4 3... 4 4... 5...... 6 1... 6 2... 7 3... 8 4... 9 5... 10... 12 1... 12 2... 13 3... 14 4... 16...... 19 1... 19 2... 20 3... 22 4... 24...... 25... 26 1... 26 2... 26 3... 26......

More information

d-00

d-00 283-0105 298 TEL. 0475-76-0839 FAX. 0475-76-0838 400g 300 4950399167708 14 220g 300 4950399066780 Page 1 300g 200 4950399066766 100 400g 300 4950399167722 350g 160 4950399066735 100 600g 350 4950399167685

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

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

14 12 10 8 6 4 2 0 1 2 3 4 5 6 7 8 9 10 11 12 20 0 0 0 0 0 0 0 0 0 0 0 0 21 0 0 0 0 0 0 0 0 0 0 0 0 22 0 0 0 0 0 0 0 0 0 0 0 0 23 0 0 0 0 0 0 0 0 0 0 0 0 24 0 0 0 0 0 0 0 0 0 0 0 0 25 0 0 0 0 0 0 0 0 0

More information

GT-3 P GT-3-6F GT GT GT GT GT GT GT

GT-3 P GT-3-6F GT GT GT GT GT GT GT 150-1.5GT-3 P 30-1.5GT-3-6F 40.5-1.5GT 40.50 27 45-1.5GT 45.00 30 48-1.5GT 48.00 32 51-1.5GT 51.00 34 61.5-1.5GT 61.50 41 69-1.5GT 69.00 46 70.5-1.5GT 70.50 47 72-1.5GT 72.00 48 73.5-1.5GT 73.50 49 76.5-1.5GT

More information

8 if switch for while do while 2

8 if switch for while do while 2 (Basic Theory of Information Processing) ( ) if for while break continue 1 8 if switch for while do while 2 8.1 if (p.52) 8.1.1 if 1 if ( ) 2; 3 1 true 2 3 false 2 3 3 8.1.2 if-else (p.54) if ( ) 1; else

More information

EP760取扱説明書

EP760取扱説明書 D D D # % ' ) * +, B - B / 1 Q&A B 2 B 5 B 6 Q & A 7 8 $ % & ' B B B ( B B B B B B B B B B B ) B B B A # $ A B B * 1 2 # $ % # B B % $ # $ % + B B 1 B 2 B B B B B B B B B B , B B B - 1 3 2 2 B B B B B

More information