C++. 24,,,,, C++ C++.,..,., ( ). /. ( 4 ) ( ).. C++., C++ C++. C++., 24 C++. C? C++ C C, C++ (Stroustrup) C++, C C++. C. C
24.,. C. C+ +?. X C++.. COBOL COBOL COBOL., C++. Java C# C++, C++. C++. Java C# awk, Perl, C. C++., PC., C++, C++..,..
25.... C+ +, C+ + [ ]., [ ]. [ ].,. ( ).. CD CD. IDE/ Dev-C+ +.,. C+ +.,.., /. Borland IDE/ C+ + BuilderX. (. ).
26. ht t p :/ / www. i nf opub. co. k r Microsoft Powerpoint ( ).,,. CD,..,.
1 C+ + 1 2 3 4 5 6 C + +
1 C++ C++,,
30 1 C+ + Java (object-oriented), C++ (design)...,,..,.,?..,.,?..,.,., ( )., C++. IBM DeveloperWorks J ava, IBM DevelopersWorks(http://www.ibm.com/ developerworks/ ).,. : C+ +, ANSI C+ +, ISO C+ +, Wind ows C++. Windows, Unix(AIX, Solaris, HP-UX ), Linux, Mac OS X. C++, (portable) C++.
1 3 1. ANSI/ISO C++. ANSI/ISO C++ C++. C++,, C++. ANSI ISO? ANSI American National Standards Institute( ) ISO International Organization for Standardization( ).,.. ANSI/ISO C++,,.,.... Dev-C++ Console Application. Windows Mac, quick window, simple window, console window. (compiler), (object file). (linker). CD. Dev-C++. 1,. Windows,,, ( ) (integrated development environment, IDE). Windows.,. 1 : Dev-C++. Dev-C++ IDE Mingw. Mingw GNU GCC Windows. Dev-C++ Mingw, Mingw C++ g++. ( ).
32 1 C+ +, CD Dev-C++ IDE Microsoft Windows. Windows..,. Windows Dev-C++ IDE. IDE. 2 CD CD, CD \Dev-C++ devcpp-4.9.9.2_setup.exe.. 1... 2.. Korean OK. 3.. Full.. 4..,.,.. 5.., Dev-C++.. 6.., Dev-C++ 5.. 2 : Borland C++ BuilderX IDE. CD-ROM C++ BuilderX. C++ BuilderX, Borland., UI / IDE Dev-C++., IDE, Dev-C++. Dev-C++.
1 33. Dev-C++ 4.9.9.2 (lang\korean.lng). CD \Dev-C++ Korean.lng Dev-C++ lang. 3 IDE Dev-C++ IDE. Dev-C++. 1. Windows - Bloodshed Dev-C++ - Dev-C++. Dev-C++.. 2.., Select your language: Korean( ).,. Next 3.., CPU Yes. Next. 4.. Yes. No - -. Next. 5.. OK Dev-C++ IDE.. Dev-C++, IDE. Dev-C++,. -. 3 :, Dev-C++ 2003 Dev-C++ (http :/ / kldp. net/ projects/ devckorcomm/ ). ( ).
34 1 C+ + 1.1 Dev-C++ IDE. 1. 1 Dev-C++ IDE IDE.,,..,. IDE. (toolbar)..,,,,,,., /.,.,. Dev-C++.dev..
1 35,,. IDE,. C++, C++.., ( ). Windows (Notepad), DOS Edit, Brief, Epsilon, EMACS, vi. WordPerfect Word,... C++. C++. cpp,. cxx,. cp,.c,. C. Dev-C++ C++. cpp. C+ +.,.cpp... ASCII. IDE..c,.cp,.cpp (Dev-C+ +.cpp ).,,.
36 1 C+ + C++,...... IDE. C+ +. GNU : g + + < > -o < > (GNU Linux, Cygwin, Mingw. Dev-C+ + Mingw.) Borland : bcc32 < > -o < > UNIX : c+ + < > -o < >. Build Compile. Dev-C++ IDE Ctrl-F9.. (object file). (link),., C++. (library).,.. (function). (type)...
1 37. 1.. cpp. 2.. 3. ( ). Dev-C++ IDE. - Ctrl-F9 IDE,.. - Shift-Ctrl-F9.,,,..,,. (syntax error).. (warning),.. (runtime error). (logic error).,,,,. (development cycle). 1.2.,..
38 1 C+ + 1.2 C++ C+ + - HELLO.CPP Hello World, C Kernighan Ritchie C.. Hello World Dev-C++. Dev-C++.
1 39 Dev-C++ IDE. - -, Basic Console Application.. Hel l o.. C C++, C++., Hel l o. dev.. mai n. cpp,. mai n. cpp,,., IDE Hello mai n. cpp ( 1.3)., No. mai n. cpp. 1.3 main. cpp. - -. Yes.. 1.1.
40 1 C+ +,. 1.1 0. #i nc l u de <i os t r e am>. Dev-C+ + IDE,. Dev-C+ +, - 0. 0 (, 1 ).,,. 1.1 he l l o. cpp He l l o Wor l d 0 : #i nc l u de <i os t r e am> 1 : 2 : i nt mai n () 3 : { 4 : s t d : :c out << "He l l o Wor l d!\ n " 5 : r et u r n 0; 6 : }.. 4 <<, < Shift (,). 4 (;),. Ctrl-S ( - )., hel l o. cpp. s t d : : c out s t d c out. c out,. C+ +, c out.. (namespace). s t d., s t d : : c out s t d c out.
1 4 1,. Dev-C++,. 1.1. Dev-C++,. 0 Cannot find file iostream,. include path. mai n (prototype), 2 i nt mai n () ;.. Dev-C++,.. 0 : #i ncl ude <i ost r eam> 1 : 2 : i nt mai n () ; 3 : i nt mai n () 4 : { 5 : s t d : :cout << "He l l o Wo r l d!\ n " 6 : r et u r n 0 ; 7 : } ( ),. IDE. (build). (make), Dev-C++ make. Dev-C++ Ctrl+F9,, -.. Status Done.... -....
42 1 C+ + IDE.., 1.1. Ctrl-F10 -.., Dev-C++.. mai n () r et ur n syst em("pause" ) ;. 1.2. 1.2 He l l o Wor l d 0 : #i nc l u de <i os t r e am> 1 : #i nc l u de <c s t dl i b> / / sy s t em() 2 : i nt mai n () 3 : { 4 : s t d : :c out << "He l l o Wor l d!\ n " ; 5 : sy s t em("pause" ) ; / /. 6 : r et u r n 0; 7 : } 1 6.... F9,, -., 1.4. IDE.
1 43 1.4 Hello World He l l o Wor l d!?. C++,,., C++.,...., hel l o. cpp 6 ( 1.3). 1.3 he l l oba d. cpp 0 : #i ncl ude <i ost r eam> 1 : 2 : i nt mai n () 3 : { 4 : s t d : :cout << "He l l o Wo r l d!\ n " 5 : r et u r n 0 ;
44 1 C+ + Dev-C++.. ma i n. cpp : I n f un ct i on `i nt mai n () ' : ma i n. cpp : 6 : e r r or : exp ect ed ` ; ' be f o r e "r et u r n " ma i n. cpp : 6 : e r r or : exp ect ed ` }' at en d o f i nput 6 }.,..,.. Dev- C+ + CD, CD., CD Examples. C: \ Book\ Exampl es ( ). 2 2.2(comment s. cpp).. Console Application. comments.,. C: \ Book\ Exampl es \ Hour 02., mai n. cpp.,. -.
1 45,. C: \ Book\ Exampl es \ Hour 02 comment s. cpp. IDE comment. cpp..., 1.2 #i ncl ude <cst dl i b> sys t em("pause" ) ;.,.,.hpp. Dev-C++,.cpp,.hpp.cpp. Dev-C++ Dev-C++ IDE..,.. 1. -. 2. Yes. 3..., -, No.. Dev-C++ ( Dev-C++, ). 5 5.4(pas sbyvar. cpp).
46 1 C+ +, mai n. cpp pas sbyvar. cpp... (Ctrl-F9). passbyvar.cpp.. 5.4.,. (breakpoint).. ( ).. swap (x, y) ; 10. 1.5 ( ). 1.5 F8 -. ( 1.6).. IDE.
1 47 1.6.,.. 11.. r et ur n 0; ( F7).. F8 -. 10 ( Shift-F7 ). 11 swap () ( 1.7)..
48 1 C+ + 1.7. 16 x x = 5. y t emp. y 10 t emp 0. t emp 21, 22 t emp 5 ( 1.8).. 1.8,,., Dev-C++ ( - CPU ). C++. Dev-C++ Borland C++ Builder Microsoft Visual C++. Dev-C++
1 49 IDE C, ( C++ IDE ). C++, Dev-C++ (gcc, g++). C++, GNU gcc (http://gcc.gnu.org/)., IDE., ( ).. - ( 1.9). 1.9. Windows.hlp.chm HTML, RTF., IDE, ( HTML ). F1 F1,.hlp.
50 1 C+ + Dev-C++ /. Dev-C+ + - Dev-C+ +,. http:// kldp.net/ projects/ devckorcomm/ GpGiki Dev-C+ + : GpGiki Dev-C+ +.. http:// www.gpgstudy.com/ gpgiki/ DevCpp Dev-C+ + : Dev-C+ +,. http:// www.bloodshed.net/ dev/ index.html MinGW : MinGW GNU gcc Windows, Dev-C+ + MinGW C+ +,. MinGW. http:// www.mingw.org/ GCC : gcc. http:// gcc.gnu.org/ DevPak : DevPak (,, GUI ). DevPak - Package Manager. DevPak DevPak. http:/ / devpaks.org/ Q&A Q A Q A?..,.,. IDE?... IDE.
1 51,,... Q A Q A?.....,.? (compile-time). ( ) ( ).,,,.. 1.? 2.? 3.? 4.? IDE.., CD.
52 1 C+ + 1. Dev-C++ IDE( IDE), ( ). 2. Dev-C++ ( ),,.,,. 3. Dev-C++ ( ).,,,, IDE. 1..,. 2...,. 3.,.,.,.,,. 4. ASCII. (DOS EDIT, Unix/ Linux vi EMACS, Windows ) Brief, IDE..,.