초보자를 위한 C++

Size: px
Start display at page:

Download "초보자를 위한 C++"

Transcription

1 C++.., C# Java C++., C++. C++,. C++.,,.. C++. C++,,., C++.. C++,,, C++..,. C++ C++. C++.

2 24?. 12, C A..... /...

3 25.,.,. Java C#., C++., Java C#, C++., Microsoft Visual C++ Borland C++ Builder C++. : C++.. C++,. C (, ) C+ + (, ) (Effect ive ) STL(, ) STL (, )

4 26 Java,. J ava (, ) J ava (, ) J av a (, ) C#,. C# (, ) C#.NET (, X) C# 2 nd Ed it io n (, ), Schildt. Windows 98 Programming From the Ground Up Windows 2000 Programming From the Ground Up MFC Programming From the Ground Up The Windows Programming Annotated Archives C,. C 2 1, Herbert Schildt.

5 1 C++ C+ + C+ + C, C#, J a v a C+ + if for C+ +

6 28 C++ C++.. C++,. C++ Java C#., C++.. C++, C++.,. C++. C++, C++., C++. C++ C++ C. C++ C., C++ C. C++ C ( ). C++ C., C++ C., C++, C. C : C... C.

7 Module 1 : C++ 29 C Dennis Ritchie, UNIX DEC PDP-11. C BCPL. BCPL Martin Richards. BCPL 1970 C Ken Thompson B. C., C.,,. C,,., C,. C 1960 (structured programming).,,,.,.. Pascal, C,. C ( )., C., C C++, C++. C,? (complexity).,,

8 30 C++.,..,,...,., FORTRAN. FORTRAN, C..,, , (OOP : Obj ect Oriented Programming).,. C. C C++., C, C.,. C++.

9 Module 1 : C C++ C New Jersey, Murray Hill Bjarne Stroustrup. C., 1983 C++. Stroustrup C C C++. C., Stroustrup.,. Stroustrup C. C++ C. C, Stroustrup. C. C++, Stroustrup C,,.. C++ C. C++, C., C++. C++,,,,. C++ C, C++., C++.

10 32 C++ C++ C++,. 1985, C++., C++., ANSI(American National Standards Institute) ISO(International Standards Organization) ANSI/ISO C++ ( ) Stroustrup,. C++. C++,. Alexander Stepanov (Standard Template Library : STL). STL..., C++ STL. STL C++. STL C++. C++.,., ANSI/ISO C++ Stroustrup , C++ ANSI/ISO C++ C++. C++. Microsoft Visual C++ Borland C++ Builder C++ C++..

11 Module 1 : C++ 33 C++ C#, 2, C#. Sun Microsystems, C# Microsoft. C++,. C++ C#. C#,,,., C++ C#.,,. C++, C#.. C#, C++. C# C++., C++. C++, C#. C++ CPU., Intel Pentium, C++. C# (, C# ). CPU.,,....,, C++. C#.,, C++., C#.

12 34 C++ C++, C#.,. C+ +? C+ +? C+ + C#.?? 1 C++ (OOP)., OOP C++., C++ OOP...., ( ) ( ).,.. C+ + C. C+ +..

13 Module 1 : C++ 35 C#? C+ +?, C#, C++. C++, CPU. CPU. C++,. C++. C#,.,. C#, Mic rosoft Inte rmediate Language (MSIL).,., Java Virtual Machine(JVM). C# Common Language Runtime(CLR)., JVM,. C# CLR,. C# CPU, C++. C++ C#..,..,., C++ OOP,,..

14 36 C++,....,., private, public. private., private. public,,., public private. C++... C++..,..,.. C++..?,.. C++. C#., C++.

15 Module 1 : C++ 37 ( ).. ( ).,,, -.,..., ( )..,,.,,.,. C++.,.,,..,. ( )....., (, ).,,,

16 38 C++., (, ),., (, ). (, ).,.,.,..,. OOP? C+ +? C+ +? 2 (OOP )., OOP. C+ +,?. C++,. C++ / C#. / C#,. C++., C++,.,, OOP. C+ +. C+ +.

17 Module 1 : C C++. / * C++. Sample. cpp. */ #i nclude <i ost ream> usi ng namespace st d; / / C++ mani (). i nt mai n() { cout << "C++ i s power pr ogrammi ng. "; } ret urn 0; ,....

18 40 C++ Osborne text,. C++.,.., C++.cpp. C++,.cpp. Sample.cpp.. Sample.cpp., Microsoft Visual C++ Borland C++ builder (IDE) ( ). C++.., Visual C++ C++ builder,., Visual C++ Sample.cpp,. C: \... >c l - GX Sample. cpp

19 Module 1 : C GX. Visual C++ VCVARS32.BAT. Visual C++ (, Visual Studio.NET Microsoft Visual Studio. NET Visual Studio.NET, ). C++ builder Sample.cpp,. C: \... >bcc32 Sample. cpp C++.,,.exe. Sample.cpp Sample.exe. C++,. C++,., Sample.exe. C: \... >Sample. C++ i s power programmi ng.,...

20 42 C++,.,. C++., C++., (GUI) C++.,., C++. Sample.cpp, C++.. / * C++. */ Sample. cpp.., C++....,.,. C++.. /* ( ) */.

21 Module 1 : C++ 43.,... #i nclude <i ost ream> C++,. <iostream>, C++..,.. usi ng namespace st d; std. C std. C++. std (,., C ).. / / C++ mai n().

22 44 C++ C++. //., C++,,,.,.,. i nt mai n() C++.,. C++, C++ main(). main(), ( ) (, C++ main(), main() ). main() main(). main() int main()., C++, int... cout << "C++ i s power progr ammi ng. ";. C++ is power programming. <<. <<,. cout,.,.., C++.

23 Module 1 : C++ 45 C++ is power programming.. C++. C++.. ret urn 0; main(), ( ) return C++,. ( ) 0. ( } ).,,,.,.,. C++.,.,, main(), cout.,.

24 46 C++ 3C+ +? cout? #include <iostream>?.,?, C++.,,....,. C++,. ( ).,.,.. C+ + main (). cout. <iostream>.

25 Module 1 : C ,.,.,. length 7, The length is 7. / /. #i nclude <i ost ream> usi ng namespace st d; i nt mai n() { i nt lengt h;. / /. lengt h = 7; / / lengt h 7. length. cout << "The lengt h i s "; cout << lengt h; / / 7. length. } ret urn 0;, C++.,,., VarDemo.cpp.., i nt lengt h; / /.

26 48 C++ length. C++,.,. (type)., length. -32,768 32,767. C++ int. C++ ( ).. lengt h = 7; / / lengt h 7., length 7. C++.., length 7. length. cout << lengt h; / / 7., cout <<. length 7,., length., C++..

27 Module 1 : C * / C++., (*). / / #i nclude <i ost ream> usi ng namespace st d; i nt mai n() { i nt lengt h; i nt widt h; i nt area; / /. / /. / /. lengt h = 7; / / lengt h 7. widt h = 5; / / widt h 5. area = lengt h * wi dt h; / / length width area. cout << "The area i s "; cout << area; / / 35. } ret urn 0; length, width area. length 7, width 5. area.

28 50 C++. The area i s 35, area.,. / / area #i nclude <i ost ream> usi ng namespace st d; i nt mai n() { i nt lengt h; i nt widt h; / / / / lengt h = 7; wi dt h = 5; / / lengt h 7 / / widt h 5 } cout << "The area i s "; cout << lengt h * widt h; ret urn 0; / / 35. length * width., length width, cout... C++ 2.,., length, width area.

29 Module 1 : C i nt lengt h, widt h, area; / /. 2 C++. 4? min 0.?., 7 5,.,,,. >>. C++.,. ci n >> var;, cin. C++. cin,. var.. C+ +. min = 0;. 2.

30 52 C++. / * */ #i nclude <i ost ream> usi ng namespace st d; i nt mai n() { i nt lengt h; i nt widt h; / /. / /. cout << "Ent er t he lengt h: "; ci n >> lengt h; / /. cout << "Ent er t he widt h: "; ci n >> wi dt h; / /. length. width. cout << "The area i s "; cout << lengt h * widt h; / /. } ret urn 0;. Ent er t he lengt h: 8 Ent er t he wi dt h: 3 The area i s 24

31 Module 1 : C cout << "Ent er t he lengt h: "; ci n >> lengt h; / /. cout. cin, length., ( ) >> ( length)., cin, length ( length 0 ).. cout., cout.., cout.,. cout << "The area i s "; cout << lengt h * wi dt h; / / 35.. cout << "The area i s " << lengt h * wi dt h; cout., The area is.,. <<.

32 54 C++, -.,. C++ -. \n( n). \n. / * \ n. */ #i nclude <i ost ream> usi ng namespace st d; i nt mai n() { cout << "one\ n"; cout << "t wo\ n"; cout << "t hree"; cout << "four "; } ret urn 0;. one t wo t hreef our..

33 Module 1 : C C+ +? cin? \ n? int., int.,., int 18, 18.3., int C++. C++ f loat double. double. double. double resul t ; result double. result, 88.56, 0.034, int double. / * i nt double. >>. cin. \ n.

34 56 C++ */ #i nclude <i ost ream> usi ng namespace st d; i nt mai n() { i nt i var; double dvar ; / / i nt. / /. ivar = 100; / / i var 100. dvar = ; / / dvar cout << "Or i gi na l value of i var : " << i var << "\ n"; cout << "Or i gi na l value of dvar : " << dvar << "\ n"; cout << "\ n"; / /. / / 3. ivar = ivar / 3; dvar = dvar / 3. 0;. cout << "ivar af t er di vi si on: " << ivar << "\ n"; cout << "dvar af t er di vi si on: " << dvar << "\ n"; } ret urn 0;. Or i gi na l va lue of i var : 100 Or i gi na l va lue of dvar : 100 ivar af t er divi s i on: 33 dvar af t er divi s i on:

35 Module 1 : C++ 57, ivar 3,, 33., dvar 3,.. cout << "\ n"; / /... C+ +?,? C++.,.,, float double.,., C++., (, ). C : (Feet) (Meter) Ft om.cpp C+ +. C+ +

36 58 C , double.,. Step-by-Step 1. FtoM.cpp C+ + (C+ +. ). 2., <iostream>, st d. / * 1-1. */ Ft om. cpp. #i nclude <i ost ream> usi ng namespace st d; 3. f m main (). i nt mai n() { double f ; double m; / /. / /. 4.. cout << "Ent er t he lengt h i n f eet : "; ci n >> f ; / /.

37 Module 1 : C m=f / 3.28; / /. cout << f << " f eet i s " << m<< " met er s. "; 6.. ret urn 0; } 7.. / * 1-1 */. Ft om. cpp. #i nc lude <i ost ream> usi ng namespace st d; i nt mai n() { double f ; double m; / /. / /. cout << "Ent er t he lengt h i n f eet : "; ci n >> f ; / /. m =f / 3.28; / /. cout << f << " f eet i s " << m<< " met er s. "; } ret urn 0;

38 60 C Ent er t he lengt h i n f eet : 5 5 feet i s met er s. 9..,. 6 C+ +? double??,. C++.,. if C++ if. C++ if if., C Java, C#. if. int. double. \ n.

39 Module 1 : C i f (condi t i on) st at ement ; condition. C++, 0, 0.,., 10 is less than 11., i f (10 < 11) cout << "10 i s less t han 11";, i f (10 > 11) cout << "t hi s does not di splay"; cout., if,. C++ (conditional expression).. < <= > >= = =!=.

40 62 C++ if. / / i f. #i nclude <i ost ream> usi ng namespace st d; i nt mai n() { i nt a, b, c; a =2; b =3; i f (a < b) cout << "a i s less t han b\ n"; if / /. i f (a == b) cout << "you won' t see t hi s\ n"; cout << "\ n"; c =a - b; / / c - 1. cout << "c cont ai ns - 1\ n"; i f (c >= 0) cout << "c i s non- negat i ve\ n"; i f (c < 0) cout << "c i s negat ive\ n"; cout << "\ n"; c =b - a; / / c 1. cout << "c cont ai ns 1\ n"; i f (c >= 0) cout << "c i s non- negat i ve\ n"; i f (c < 0) cout << "c i s negat ive\ n"; } ret urn 0;

41 Module 1 : C a i s less t han b c cont ai ns - 1 c i s negat i ve c cont ai ns 1 c i s non- negat i ve for. C++. f or. C# Java, C++ for. for. for (i ni t i al i zat i on; condi t i on; i ncrement ) st at ement ; initialization. condition. condition (0 ). increment. for, / / f or #i nclude <i ost ream> usi ng namespace st d; i nt mai n()

42 64 C++ { i nt count ; for. for (count =1; count <= 100; count =count +1) cout << count << " "; } ret urn 0;, count 1.. count <= 100, count 1. count 100,,. C++. count =count +1, C ( ) , for. for (count =1; count <= 100; count ++) cout << count << " ";.

43 Module 1 : C++ 65 C if? for? C+ +? C++ (code block)...,., if for. if. i f (w <h) { v = w * h; w = 0; } w h,.,,.,.. if C+ +. for C+ +. = =,!=, <, >, <=, >=.

44 66 C++ 0. / /. #i nclude <i ost ream> usi ng namespace st d; i nt mai n() { double resul t, n, d; cout << "Ent er va lue: "; ci n >> n; cout << "Ent er di vi sor : "; ci n >> d; / / i f. i f (d!= 0) { cout << "d does not equal zero so di vi si on i s OK" << "\ n"; result =n / d; cout << n <<"/ "<<d <<"i s "<<resul t ; } } ret urn 0; if.. Ent er value : 10 Ent er di vi sor : 2 d does not equa l zero so divi s i on i s OK 10 / 2 i s 5

45 Module 1 : C++ 67, if. if ( ) 3. 0.,.?, { }?...,.. C++,,.,..,.,. C++,.,., C++ x = y; y = y +1; cout << x << "" << y;

46 68 C++. x = y; y = y + 1; cout << x << "" << y;,.,. cout << "Thi s i s a long l i ne. The sum i s : " << a + b + c + d + e + f ;.,.. C++,.,.,.... 8?? C+ +,. C+ +.? { }...

47 Module 1 : C++ 69 FtoMTable. cpp 1-2 : - for, if, ,. counter. counter. Step-by-Step 1. FtoMTable.cpp. 2.. / * */ Ft omtable. cpp. #i nc lude <i ost ream> usi ng namespace st d; i nt mai n() { double f ; double m; i nt count er; / /. / /. count er = 0; 0. for (f = 1.0; f <= ; f ++) { m =f / 3. 28; / /. cout << f << " feet i s " << m<< " met ers. \ n"; count er++; / /

48 70 C++ } i f (count er == 10) { } cout << "\ n"; / /. count er = 0; / /. counter 10,. } ret urn 0; counter. counter for 0, 1. counter 10,, counter feet i s met ers. 2 feet i s met ers. 3 feet i s met ers. 4 feet i s met er s. 5 feet i s met er s. 6 feet i s met er s. 7 feet i s met er s. 8 feet i s met er s. 9 feet i s met ers. 10 f eet i s met ers. 11 f eet i s met ers. 12 f eet i s met ers. 13 f eet i s met ers. 14 f eet i s met ers. 15 f eet i s met ers. 16 f eet i s met ers. 17 f eet i s met ers. 18 f eet i s met er s.

49 Module 1 : C feet i s met er s. 20 feet i s met er s. 21 feet i s met er s. 22 feet i s met er s. 23 feet i s met ers. 24 feet i s met er s. 25 feet i s met er s. 26 feet i s met er s. 27 feet i s met er s. 28 feet i s met er s. 29 feet i s met er s. 30 feet i s met er s. 31 feet i s met er s. 32 feet i s met ers. 33 feet i s met ers. 34 feet i s met er s. 35 feet i s met er s. 36 feet i s met er s. 37 feet i s met er s. 38 feet i s met er s. 39 feet i s met er s. 40 feet i s met er s C++. 5,., C++.

50 72 C++,.,., MyFunc. MyFunc. MyFunc () ;,..,.,..,.., MyFunc(), MyFunc() 2. MyFunc (2);, , MyFunc(), MyFunc. x = MyFunc (2);., MyFunc(). MyFunc() x.,.

51 Module 1 : C++ 73, x = MyFunc(2) + 10;, MyFunc() 10. x.,,,..... C++ abs(). abs(),. / / abs (). #i nclude <i ost ream> #i nc lude <cst dl i b> usi ng namespace st d; i nt mai n() { i nt resul t ; resul t = abs (- 10) ; abs (), result. cout << resul t ; } ret urn 0;

52 74 C abs(), abs(). 10. result, 10.. <cstdlib> abs()..,., main().., C++.. abs().., C++.., getval getval().. C++, abs() C++. (standard library).. C++.,,., C++.

53 Module 1 : C++ 75 C++,....,., C++ (class library).,. 9?.? C+ +? C++ C [ 1.1]. C++, C++., C++ overload,. C++,. C++,.. C+ +.. C+ + C+ +.

54 76 C++.,,. line_count. 1.1 C+ + asm auto bool break case catch char class const const_cast cont inue default delete do double dynamic_cast else enum explicit export extern false float for f riend goto if inline int long mutable names pace new operator private protected public register reinterpret_cast return s hort s igned s izeof stat ic stat ic_cast st ruct switch template this t hrow true try typedef typeid typename union unsigned us ing virtual void volatile wchar_t while., C++, myvar MyVar., C++., cout.. Test x y2 MaxIncr up _top my_var s impleinterest23

55 Module 1 : C K.. 10for, For, FOR? C+ +? index21 Index21? for. C+ +. C+ +,,.. C+ +.

56 78 C++ 1. C C++.?? 3.? 4. C++? 5.? 6. <iostream>?? #include <iostream> 7.? 8.? 9.? a. count b. _count c. count27 d. 67count e. if 10.?? 11. if. for. 12.? %

57 Module 1 : C ( ) ?

초보자를 위한 C# 21일 완성

초보자를 위한 C# 21일 완성 C# 21., 21 C#., 2 ~ 3 21. 2 ~ 3 21.,. 1~ 2 (, ), C#.,,.,., 21..,.,,, 3. A..,,.,.. Q&A.. 24 C#,.NET.,.,.,. Visual C# Visual Studio.NET,..,. CD., www. TeachYour sel f CSharp. com., ( )., C#.. C# 1, 1. WEEK

More information

K&R2 Reference Manual 번역본

K&R2 Reference Manual 번역본 typewriter structunion struct union if-else if if else if if else if if if if else else ; auto register static extern typedef void char short int long float double signed unsigned const volatile { } struct

More information

초보자를 위한 C++

초보자를 위한 C++ 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#

More information

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어

프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어 개나리 연구소 C 언어 노트 (tyback.egloos.com) 프로그램을 학교 등지에서 조금이라도 배운 사람들을 위한 프로그래밍 노트 입니다. 저 역시 그 사람들 중 하나 입니다. 중고등학교 시절 학교 도서관, 새로 생긴 시립 도서관 등을 다니며 책을 보 고 정리하며 어느정도 독학으르 공부하긴 했지만, 자주 안하다 보면 금방 잊어먹고 하더라구요. 그래서,

More information

C프로-3장c03逞풚

C프로-3장c03逞풚 C h a p t e r 03 C++ 3 1 9 4 3 break continue 2 110 if if else if else switch 1 if if if 3 1 1 if 2 2 3 if if 1 2 111 01 #include 02 using namespace std; 03 void main( ) 04 { 05 int x; 06 07

More information

02 C h a p t e r Java

02 C h a p t e r Java 02 C h a p t e r Java Bioinformatics in J a va,, 2 1,,,, C++, Python, (Java),,, (http://wwwbiojavaorg),, 13, 3D GUI,,, (Java programming language) (Sun Microsystems) 1995 1990 (green project) TV 22 CHAPTER

More information

chap10.PDF

chap10.PDF 10 C++ Hello!! C C C++ C++ C++ 2 C++ 1980 Bell Bjarne Stroustrup C++ C C++ C, C++ C C 3 C C++ (prototype) (type checking) C C++ : C++ 4 C C++ (prototype) (type checking) [ 10-1] #include extern

More information

C 프로그래밍 언어 입문 C 프로그래밍 언어 입문 김명호저 숭실대학교 출판국 머리말..... C, C++, Java, Fortran, Python, Ruby,.. C. C 1972. 40 C.. C. 1999 C99. C99. C. C. C., kmh ssu.ac.kr.. ,. 2013 12 Contents 1장 프로그래밍 시작 1.1 C 10 1.2 12

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 2... ( ). ( ). @ vs. logic data method variable behavior attribute method field Flow (Type), ( ) member @ () : C program Method A ( ) Method B ( ) Method C () program : Java, C++, C# data @ Program

More information

초보자를 위한 자바 2 21일 완성 - 최신개정판

초보자를 위한 자바 2 21일 완성 - 최신개정판 .,,.,. 7. Sun Microsystems.,,. Sun Bill Joy.. 15... ( ), ( )... 4600. .,,,,,., 5 Java 2 1.4. C++, Perl, Visual Basic, Delphi, Microsoft C#. WebGain Visual Cafe, Borland JBuilder, Sun ONE Studio., Sun Java

More information

BACK TO THE BASIC C++ 버그 헌팅: 버그를 예방하는 11가지 코딩 습관

BACK TO THE BASIC C++ 버그 헌팅: 버그를 예방하는 11가지 코딩 습관 Hanbit ebook Realtime 30 C++ 버그 헌팅 버그를 예방하는 11가지 코딩 습관 Safe C++ 블라디미르 쿠스퀴니르 지음 / 정원천 옮김 이 도서는 O REILLY의 Safe C++의 번역서입니다. BACK TO THE BASIC C++ 버그 헌팅 버그를 예방하는 11가지 코딩 습관 BACK TO THE BASIC C++ 버그 헌팅 버그를

More information

Microsoft PowerPoint - 3ÀÏ°_º¯¼ö¿Í »ó¼ö.ppt

Microsoft PowerPoint - 3ÀÏ°_º¯¼ö¿Í »ó¼ö.ppt 변수와상수 1 변수란무엇인가? 변수 : 정보 (data) 를저장하는컴퓨터내의특정위치 ( 임시저장공간 ) 메모리, register 메모리주소 101 번지 102 번지 변수의크기에따라 주로 byte 단위 메모리 2 기본적인변수형및변수의크기 변수의크기 해당컴퓨터에서는항상일정 컴퓨터마다다를수있음 short

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 1,..... @ 1 Green Project 1991 Oak Java 1995. 5 December '90 by Patrick Naughton, Mike Sheridan and James Gosling Embedded in various consumer electronic device 1992. 9. 3 Star 7 1993 www portability

More information

1. auto_ptr 다음프로그램의문제점은무엇인가? void func(void) int *p = new int; cout << " 양수입력 : "; cin >> *p; if (*p <= 0) cout << " 양수를입력해야합니다 " << endl; return; 동적할

1. auto_ptr 다음프로그램의문제점은무엇인가? void func(void) int *p = new int; cout <<  양수입력 : ; cin >> *p; if (*p <= 0) cout <<  양수를입력해야합니다  << endl; return; 동적할 15 장기타주제들 auto_ptr 변환함수 cast 연산자에의한명시적형변환실행시간타입정보알아내기 (RTTI) C++ 프로그래밍입문 1. auto_ptr 다음프로그램의문제점은무엇인가? void func(void) int *p = new int; cout > *p; if (*p

More information

Microsoft PowerPoint - [2009] 02.pptx

Microsoft PowerPoint - [2009] 02.pptx 원시데이터유형과연산 원시데이터유형과연산 원시데이터유형과연산 숫자데이터유형 - 숫자데이터유형 원시데이터유형과연산 표준입출력함수 - printf 문 가장기본적인출력함수. (stdio.h) 문법 ) printf( Test printf. a = %d \n, a); printf( %d, %f, %c \n, a, b, c); #include #include

More information

Modern Javascript

Modern Javascript ES6 - Arrow Function Class Template String Destructuring Default, Rest, Spread let, const for..of Promises Module System Map, Set * Generator * Symbol * * https://babeljs.io/ Babel is a JavaScript compiler.

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 3 if, if else, if else if, switch case for, while, do while break, continue : System.in, args, JOptionPane for (,, ) @ vs. logic data method variable Data Data Flow (Type), ( ) @ Member field

More information

초보자를 위한 한글 Visual Basic .NET 21일 완성

초보자를 위한 한글 Visual Basic .NET 21일 완성 21 Visual Basic.NET. Visual Basic.NET Visual Basic..NET Visual Basic.NET,..NET Micorosoft.,,..NET 21,. Visual Basic.NET, 21,.NET,.NET. Visual Basic.NET,.NET,,.,.NET...NET (Visual Basic, C#, C+ + ).NET.

More information

쉽게 풀어쓴 C 프로그래밍

쉽게 풀어쓴 C 프로그래밍 제 3 장함수와문자열 1. 함수의기본적인개념을이해한다. 2. 인수와매개변수의개념을이해한다. 3. 함수의인수전달방법 2가지를이해한다 4. 중복함수를이해한다. 5. 디폴트매개변수를이해한다. 6. 문자열의구성을이해한다. 7. string 클래스의사용법을익힌다. 이번장에서만들어볼프로그램 함수란? 함수선언 함수호출 예제 #include using

More information

03장.스택.key

03장.스택.key ---------------- DATA STRUCTURES USING C ---------------- 03CHAPTER 1 ? (stack): (LIFO:Last-In First-Out) 2 : top : ( index -1 ),,, 3 : ( ) ( ) -> ->. ->.... 4 Stack ADT : (LIFO) : init():. is_empty():

More information

초보자를 위한 ASP.NET 21일 완성

초보자를 위한 ASP.NET 21일 완성 ASP.NET 21!!.! 21 ( day 2 ), Active Server Pages.NET (Web-based program -ming framework).,... ASP.NET. ASP. NET Active Server Pages ( ASP ),. ASP.NET,, ( ),.,.,, ASP.NET.? ASP.NET.. (, ).,. HTML. 24 ASP.

More information

자바 프로그래밍

자바 프로그래밍 5 (kkman@mail.sangji.ac.kr) (Class), (template) (Object) public, final, abstract [modifier] class ClassName { // // (, ) Class Circle { int radius, color ; int x, y ; float getarea() { return 3.14159

More information

1

1 04단원 컴퓨터 소프트웨어 1. 프로그래밍 언어 2. 시스템 소프트웨어 1/10 1. 프로그래밍 언어 1) 프로그래밍 언어 구분 각종 프로그래밍 언어에 대해 알아보는 시간을 갖도록 하겠습니다. 우리가 흔히 접하는 소프트웨어 들은 프로그래밍 언어로 만들어지는데, 프로그래밍 언어는 크게 2가지로 나눌 수 있습니다. 1 저급어 : 0과 1로 구성되어 있어, 컴퓨터가

More information

제 1 강 희망의 땅, 알고리즘

제 1 강 희망의 땅, 알고리즘 제 2 강 C++ 언어개요 이재규 leejaku@shinbiro.com Topics C++ 언어의역사와개요 프로그래밍언어의패러다임변화 C 의확장언어로서의 C++ 살펴보기 포인터와레퍼런스 새로운메모리할당 Function Overloading, Template 객체지향언어로서의 C++ 살펴보기 OOP 의개념과실습 2.1 C++ 의역사와개요 프로그래밍언어의역사 C++

More information

The C++ Programming Language 4 장타입과선언 4.11 연습문제 Hello,world! 프로그램을실행시킨다. 프로그램이컴파일되지않으면 B3.1 을참고하자. #include<iostream> //#include 문, 헤더파일, 전처리지시

The C++ Programming Language 4 장타입과선언 4.11 연습문제 Hello,world! 프로그램을실행시킨다. 프로그램이컴파일되지않으면 B3.1 을참고하자. #include<iostream> //#include 문, 헤더파일, 전처리지시 The C++ Programming Language 4 장타입과선언 4.11 연습문제 4.11.1 Hello,world! 프로그램을실행시킨다. 프로그램이컴파일되지않으면 B3.1 을참고하자. #include //#include 문, 헤더파일, 전처리지시자로호칭 using namespace std; //using 키워드를사용하여 std 네임스페이스를사용선언

More information

untitled

untitled while do-while for break continue while( ) ; #include 0 i int main(void) int meter; int i = 0; while(i < 3) meter = i * 1609; printf("%d %d \n", i, meter); i++; return 0; i i< 3 () 0 (1)

More information

Microsoft PowerPoint - 8ÀÏ°_Æ÷ÀÎÅÍ.ppt

Microsoft PowerPoint - 8ÀÏ°_Æ÷ÀÎÅÍ.ppt 포인터 1 포인터란? 포인터 메모리의주소를가지고있는변수 메모리주소 100번지 101번지 102번지 103번지 int theage (4 byte) 변수의크기에따라 주로 byte 단위 주소연산자 : & 변수의주소를반환 메모리 2 #include list 8.1 int main() using namespace std; unsigned short

More information

(Asynchronous Mode) ( 1, 5~8, 1~2) & (Parity) 1 ; * S erial Port (BIOS INT 14H) - 1 -

(Asynchronous Mode) ( 1, 5~8, 1~2) & (Parity) 1 ; * S erial Port (BIOS INT 14H) - 1 - (Asynchronous Mode) - - - ( 1, 5~8, 1~2) & (Parity) 1 ; * S erial Port (BIOS INT 14H) - 1 - UART (Univ ers al As y nchronous Receiver / T rans mitter) 8250A 8250A { COM1(3F8H). - Line Control Register

More information

class Sale void makelineitem(productspecification* spec, int qty) SalesLineItem* sl = new SalesLineItem(spec, qty); ; 2. 아래의액티비티다이어그램을보고 Java 또는 C ++,

class Sale void makelineitem(productspecification* spec, int qty) SalesLineItem* sl = new SalesLineItem(spec, qty); ; 2. 아래의액티비티다이어그램을보고 Java 또는 C ++, Level 1은객관식사지선다형으로출제예정 1. 다음은 POST(Post of Sales Terminal) 시스템의한콜레보레이션다이어그램이다. POST 객체의 enteritem(upc, qty) 와 Sale 객체의 makellineitem(spec,qty) 를 Java 또는 C ++, C # 언어로구현하시오. 각메소드구현과관련하여각객체내에필요한선언이있으면선언하시오.

More information

PowerPoint Template

PowerPoint Template 16-1. 보조자료템플릿 (Template) 함수템플릿 클래스템플릿 Jong Hyuk Park 함수템플릿 Jong Hyuk Park 함수템플릿소개 함수템플릿 한번의함수정의로서로다른자료형에대해적용하는함수 예 int abs(int n) return n < 0? -n : n; double abs(double n) 함수 return n < 0? -n : n; //

More information

untitled

untitled 자료형 기본자료형 : char, int, float, double 등 파생자료형 : 배열, 열거형, 구조체, 공용체 vs struct 구조체 _ 태그 _ 이름 자료형멤버 _ 이름 ; 자료형멤버 _ 이름 ;... ; struct student int number; // char name[10]; // double height; // ; // x값과 y값으로이루어지는화면의좌표

More information

lecture4(6.범용IO).hwp

lecture4(6.범용IO).hwp 제 2 부 C-언어를 사용한 마이크로컨트롤러 활용기초 66 C-언어는 수학계산을 위해 개발된 FORTRAN 같은 고급언어들과는 달 리 Unix 운영체제를 개발하면서 같이 개발된 고급언어이다. 운영체제의 특성상 C-언어는 다른 고급언어에 비해 컴퓨터의 하드웨어를 직접 제어할 수 있는 능력이 탁월하여 마이크로프로세서의 프로그램에 있어서 어셈블 리와 더불어 가장

More information

C++ Programming

C++ Programming C++ Programming C 언어에서 C++ 언어로의전환 Seo, Doo-okok clickseo@gmail.com http://www.clickseo.com 목 차 C++ 언어개요 C 언어기반의 C++ 2 C++ 언어개요 C++ 언어개요 C++ 언어의역사및특징 통합개발환경 C 언어기반의 C++ 3 C++ 언어의역사 C++ 언어의역사및특징 1979 년,

More information

C++-¿Ïº®Çؼ³10Àå

C++-¿Ïº®Çؼ³10Àå C C++. (preprocessor directives), C C++ C/C++... C++, C. C++ C. C C++. C,, C++, C++., C++.,.. #define #elif #else #error #if #itdef #ifndef #include #line #pragma #undef #.,.,. #include #include

More information

C++ Programming

C++ Programming C++ Programming 연산자다중정의 Seo, Doo-okok clickseo@gmail.com http://www.clickseo.com 목 차 연산자다중정의 C++ 스타일의문자열 2 연산자다중정의 연산자다중정의 단항연산자다중정의 이항연산자다중정의 cin, cout 그리고 endl C++ 스타일의문자열 3 연산자다중정의 연산자다중정의 (Operator

More information

080629_CFP °ø°³¿ë.hwp

080629_CFP °ø°³¿ë.hwp int deleteq(int *front, rear) int item; if ( ( 가 ) ) retuen queue_empty; ( ( 나 ) ) ; return queue[*front]; 주어진문제의해에접근한결과, 즉근사해를출력하거나혹은일정확률이상의정확한해를구할수있는알고리즘으로, 이알고리즘은주어진문제에대한근사해로만족할수있거나, 간혹틀린해를출력하는경우를허용할수있는경우활용할수있다.

More information

13 2 ( 25 ) Korean J Med Hist Dec 2004 ISSN X * ( ) ( ) ( ). 1) ( ) ( ) ( ) ( ) ( ) 2) ( ) 3) 1990 ( ) 4) * 1) ( ) C

13 2 ( 25 ) Korean J Med Hist Dec 2004 ISSN X * ( ) ( ) ( ). 1) ( ) ( ) ( ) ( ) ( ) 2) ( ) 3) 1990 ( ) 4) * 1) ( ) C 13 2 ( 25 ) 2004 12 Korean J Med Hist 13 198 218 Dec 2004 ISSN 1225 505X * 1 11 1( ) ( ) ( ). 1) ( ) ( ) ( ) ( ) ( ) 2) ( ) 3) 1990 ( ) 4) * 1) ( ) CD- ROM 2) 1962 p 204 2000 p 18 3) 1966 p 330-1 198 5)

More information

untitled

untitled - -, (insert) (delete) - - (insert) (delete) (top ) - - (insert) (rear) (delete) (front) A A B top A B C top push(a) push(b) push(c) A B top pop() top A B D push(d) top #define MAX_STACK_SIZE 100 int

More information

The C++ Programming Language 5 장포인터, 배열, 구조체 5.9 연습문제 다음의선언문을순서대로작성해보자. 문자에대한포인터, 10개정수의배열, 10개정수의배열의참조자, 문자열의배열에대한포인터, 문자에대한포인터에대한포인터, 상수정수, 상수

The C++ Programming Language 5 장포인터, 배열, 구조체 5.9 연습문제 다음의선언문을순서대로작성해보자. 문자에대한포인터, 10개정수의배열, 10개정수의배열의참조자, 문자열의배열에대한포인터, 문자에대한포인터에대한포인터, 상수정수, 상수 The C++ Programming Language 5 장포인터, 배열, 구조체 5.9 연습문제 5.9.1 다음의선언문을순서대로작성해보자. 문자에대한포인터, 10개정수의배열, 10개정수의배열의참조자, 문자열의배열에대한포인터, 문자에대한포인터에대한포인터, 상수정수, 상수정수에대한포인터, 정수에대한상수포인터. 그리고각각의객체를초기화하자. Ex 문자에대한포인터 char

More information

5.스택(강의자료).key

5.스택(강의자료).key CHP 5: https://www.youtube.com/watch?v=ns-r91557ds ? (stack): (LIFO:Last-In First-Out):. D C B C B C B C B (element) C (top) B (bottom) (DT) : n element : create() ::=. is_empty(s) ::=. is_full(s) ::=.

More information

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for 2003 Development of the Software Generation Method using Model Driven Software Engineering Tool,,,,, Hoon-Seon Chang, Jae-Cheon Jung, Jae-Hack Kim Hee-Hwan Han, Do-Yeon Kim, Young-Woo Chang Wang Sik, Moon

More information

C++ Programming

C++ Programming C++ Programming 예외처리 Seo, Doo-okok clickseo@gmail.com http://www.clickseo.com 목 차 예외처리 2 예외처리 예외처리 C++ 의예외처리 예외클래스와객체 3 예외처리 예외를처리하지않는프로그램 int main() int a, b; cout > a >> b; cout

More information

chap01_time_complexity.key

chap01_time_complexity.key 1 : (resource),,, 2 (time complexity),,, (worst-case analysis) (average-case analysis) 3 (Asymptotic) n growth rate Θ-, Ο- ( ) 4 : n data, n/2. int sample( int data[], int n ) { int k = n/2 ; return data[k]

More information

Windows 시스템 프로그래밍 제3판

Windows 시스템 프로그래밍 제3판 1 W i n 3 2 W i n 6 4 1 Wi n32 Wi n64 25 Microsoft Windows (operating system, OS) Win32 API(application programming interface, ). 64 Win64 API, Win32 Win64., Win32 Win64 Windows Windows API. Win32 Win64.

More information

C# Programming Guide - Types

C# Programming Guide - Types C# Programming Guide - Types 최도경 lifeisforu@wemade.com 이문서는 MSDN 의 Types 를요약하고보충한것입니다. http://msdn.microsoft.com/enus/library/ms173104(v=vs.100).aspx Types, Variables, and Values C# 은 type 에민감한언어이다. 모든

More information

6주차.key

6주차.key 6, Process concept A program in execution Program code PCB (process control block) Program counter, registers, etc. Stack Heap Data section => global variable Process in memory Process state New Running

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 4 (Object) (Class) (Instance) (Method) (Constructor) Memory 1 UML 1 @ & 1 (Real World) (Software World) @ &.. () () @ & 2 (Real World) (Software World) OOA/ Modeling Abstraction Instantiation

More information

Microsoft PowerPoint - additional01.ppt [호환 모드]

Microsoft PowerPoint - additional01.ppt [호환 모드] 1.C 기반의 C++ part 1 함수 오버로딩 (overloading) 디폴트매개변수 (default parameter) 인-라인함수 (in-line function) 이름공간 (namespace) Jong Hyuk Park 함수 Jong Hyuk Park 함수오버로딩 (overloading) 함수오버로딩 (function overloading) C++ 언어에서는같은이름을가진여러개의함수를정의가능

More information

쉽게 풀어쓴 C 프로그래밊

쉽게 풀어쓴 C 프로그래밊 C++ Espresso 제 1 장기초사항 이번장에서학습할내용 C++ 언어의역사 C++ 언어의특징 객체지향의간단한소개 C++ 개발과정 첫번째예제설명 변수와상수 연산자 C++ 에대한기초적인사항들을살펴봅니다. C++ 언어의개발 C++ 는 1980 년대초에 AT&T 벨연구소의 Bjarne Stroustrup 에의하여개발 C++ 는 C 언어를유지, 확장한것 C with

More information

Microsoft PowerPoint - PL_03-04.pptx

Microsoft PowerPoint - PL_03-04.pptx Copyright, 2011 H. Y. Kwak, Jeju National University. Kwak, Ho-Young http://cybertec.cheju.ac.kr Contents 1 프로그래밍 언어 소개 2 언어의 변천 3 프로그래밍 언어 설계 4 프로그래밍 언어의 구문과 구현 기법 5 6 7 컴파일러 개요 변수, 바인딩, 식 및 제어문 자료형 8

More information

Line (A) å j a k= i k #define max(a, b) (((a) >= (b))? (a) : (b)) long MaxSubseqSum0(int A[], unsigned Left, unsigned Right) { int Center, i; long Max

Line (A) å j a k= i k #define max(a, b) (((a) >= (b))? (a) : (b)) long MaxSubseqSum0(int A[], unsigned Left, unsigned Right) { int Center, i; long Max 알고리즘설계와분석 (CSE3081-2반 ) 중간고사 (2013년 10월24일 ( 목 ) 오전 10시30분 ) 담당교수 : 서강대학교컴퓨터공학과임인성수강학년 : 2학년문제 : 총 8쪽 12문제 ========================================= < 주의 > 답안지에답을쓴후제출할것. 만약공간이부족하면답안지의뒷면을이용하고반드시답을쓰는칸에답안지의어느쪽의뒷면에답을기술하였는지명시할것.

More information

신림프로그래머_클린코드.key

신림프로그래머_클린코드.key CLEAN CODE 6 11st Front Dev. Team 6 1. 2. 3. checked exception 4. 5. 6. 11 : 2 4 : java (50%), javascript (35%), SQL/PL-SQL (15%) : Spring, ibatis, Oracle, jquery ? , (, ) ( ) 클린코드를 무시한다면 . 6 1. ,,,!

More information

PowerPoint Template

PowerPoint Template 1.C 기반의 C++ 스트림입출력 함수 오버로딩 (overloading) 디폴트매개변수 (default parameter) 인-라인함수 (in-line function) 이름공간 (namespace) Jong Hyuk Park 스트림입출력 Jong Hyuk Park printf 와 scanf 출력의기본형태 iostream 헤더파일의포함 HelloWorld2.cpp

More information

슬라이드 1

슬라이드 1 정적메모리할당 (Static memory allocation) 일반적으로프로그램의실행에필요한메모리 ( 변수, 배열, 객체등 ) 는컴파일과정에서결정되고, 실행파일이메모리에로드될때할당되며, 종료후에반환됨 동적메모리할당 (Dynamic memory allocation) 프로그램의실행중에필요한메모리를할당받아사용하고, 사용이끝나면반환함 - 메모리를프로그램이직접관리해야함

More information

chap7.key

chap7.key 1 7 C 2 7.1 C (System Calls) Unix UNIX man Section 2 C. C (Library Functions) C 1975 Dennis Ritchie ANSI C Standard Library 3 (system call). 4 C?... 5 C (text file), C. (binary file). 6 C 1. : fopen( )

More information

1

1 1 1....6 1.1...6 2. Java Architecture...7 2.1 2SDK(Software Development Kit)...8 2.2 JRE(Java Runtime Environment)...9 2.3 (Java Virtual Machine, JVM)...10 2.4 JVM...11 2.5 (runtime)jvm...12 2.5.1 2.5.2

More information

쉽게 풀어쓴 C 프로그래밍

쉽게 풀어쓴 C 프로그래밍 제 5 장생성자와접근제어 1. 객체지향기법을이해한다. 2. 클래스를작성할수있다. 3. 클래스에서객체를생성할수있다. 4. 생성자를이용하여객체를초기화할수 있다. 5. 접근자와설정자를사용할수있다. 이번장에서만들어볼프로그램 생성자 생성자 (constructor) 는초기화를담당하는함수 생성자가필요한이유 #include using namespace

More information

비긴쿡-자바 00앞부속

비긴쿡-자바 00앞부속 IT COOKBOOK 14 Java P r e f a c e Stay HungryStay Foolish 3D 15 C 3 16 Stay HungryStay Foolish CEO 2005 L e c t u r e S c h e d u l e 1 14 PPT API C A b o u t T h i s B o o k IT CookBook for Beginner Chapter

More information

12-file.key

12-file.key 11 (String).. java.lang.stringbuffer. s String s = "abcd"; s = s + "e"; a b c d e a b c d e ,., "910359,, " "910359" " " " " (token) (token),, (delimiter). java.util.stringtokenizer String s = "910359,,

More information

Microsoft PowerPoint - Chapter 1-rev

Microsoft PowerPoint - Chapter 1-rev 1.C 기반의 C++ part 1 스트림입출력 함수 오버로딩 (overloading) 디폴트매개변수 (default parameter) 인-라인함수 (in-line function) 이름공간 (namespace) Jong Hyuk Park 스트림입출력 Jong Hyuk Park printf 와 scanf 출력의기본형태 : 과거스타일! iostream.h 헤더파일의포함

More information

SIGPLwinterschool2012

SIGPLwinterschool2012 1994 1992 2001 2008 2002 Semantics Engineering with PLT Redex Matthias Felleisen, Robert Bruce Findler and Matthew Flatt 2009 Text David A. Schmidt EXPRESSION E ::= N ( E1 O E2 ) OPERATOR O ::=

More information

11강-힙정렬.ppt

11강-힙정렬.ppt 11 (Heap ort) leejaku@shinbiro.com Topics? Heap Heap Opeations UpHeap/Insert, DownHeap/Extract Binary Tree / Index Heap ort Heap ort 11.1 (Priority Queue) Operations ? Priority Queue? Priority Queue tack

More information

slide2

slide2 Program P ::= CL CommandList CL ::= C C ; CL Command C ::= L = E while E : CL end print L Expression E ::= N ( E + E ) L &L LefthandSide L ::= I *L Variable I ::= Numeral N ::=

More information

07 자바의 다양한 클래스.key

07 자바의 다양한 클래스.key [ 07 ] . java.lang Object, Math, String, StringBuffer Byte, Short, Integer, Long, Float, Double, Boolean, Character. java.util Random, StringTokenizer Calendar, GregorianCalendar, Date. Collection, List,

More information

PCServerMgmt7

PCServerMgmt7 Web Windows NT/2000 Server DP&NM Lab 1 Contents 2 Windows NT Service Provider Management Application Web UI 3 . PC,, Client/Server Network 4 (1),,, PC Mainframe PC Backbone Server TCP/IP DCS PLC Network

More information

MPLAB C18 C

MPLAB C18 C MPLAB C18 C MPLAB C18 MPLAB C18 C MPLAB C18 C #define START, c:\mcc18 errorlevel{0 1} char isascii(char ch); list[list_optioin,list_option] OK, Cancel , MPLAB IDE User s Guide MPLAB C18 C

More information

슬라이드 1

슬라이드 1 3 장. 선행자료 어휘원소, 연산자와 C 시스템 박종혁교수 UCS Lab Tel: 970-6702 Email: jhpark1@seoultech.ac.kr SeoulTech 2019-1 st 프로그래밍입문 (1) 2 목차 1.1 문자와어휘원소 1.2 구문법칙 1.3 주석 1.4 키워드 (Keyword) 1.5 식별자 (Identifier) 1.6 상수 (Integer,

More information

int main(void) int a; int b; a=3; b=a+5; printf("a : %d \n", a); printf("b : %d \n", b); a b 3 a a+5 b &a(12ff60) &b(12ff54) 3 a 8 b printf(" a : %x \

int main(void) int a; int b; a=3; b=a+5; printf(a : %d \n, a); printf(b : %d \n, b); a b 3 a a+5 b &a(12ff60) &b(12ff54) 3 a 8 b printf( a : %x \ ? 1 int main(void) int a; int b; a=3; b=a+5; printf("a : %d \n", a); printf("b : %d \n", b); a b 3 a a+5 b &a(12ff60) &b(12ff54) 3 a 8 b printf(" a : %x \n", &a); printf(" b : %x \n", &b); * : 12ff60,

More information

13주-14주proc.PDF

13주-14주proc.PDF 12 : Pro*C/C++ 1 2 Embeded SQL 3 PRO *C 31 C/C++ PRO *C NOT! NOT AND && AND OR OR EQUAL == = SQL,,, Embeded SQL SQL 32 Pro*C C SQL Pro*C C, C Pro*C, C C 321, C char : char[n] : n int, short, long : float

More information

<443A5C4C C4B48555C B3E25C32C7D0B1E25CBCB3B0E8C7C1B7CEC1A7C6AE425CC0E7B0EDB0FCB8AE5C53746F636B5F4D616E D656E74732E637070>

<443A5C4C C4B48555C B3E25C32C7D0B1E25CBCB3B0E8C7C1B7CEC1A7C6AE425CC0E7B0EDB0FCB8AE5C53746F636B5F4D616E D656E74732E637070> 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include "QuickSort.h" 7 using namespace std; 8 9 10 Node* Queue[100]; // 추가입력된데이터를저장하기위한 Queue

More information

초보자를 위한 ASP.NET 2.0

초보자를 위한 ASP.NET 2.0 (World Wide Web), HTML., (ebay) (Amazon.com) HTML,., Microsoft ASP.NET. ASP.NET ASP.NET., ASP.NET HTML,,. ASP.NET HTML.. ASP.NET, Microsoft Visual Basic. Visual Basic. 5 Visual Basic, Visual Basic. ASP.NET

More information

Microsoft PowerPoint - Chapter 6.ppt

Microsoft PowerPoint - Chapter 6.ppt 6.Static 멤버와 const 멤버 클래스와 const 클래스와 static 연결리스트프로그램예 Jong Hyuk Park 클래스와 const Jong Hyuk Park C 의 const (1) const double PI=3.14; PI=3.1415; // 컴파일오류 const int val; val=20; // 컴파일오류 3 C 의 const (1)

More information

쉽게 풀어쓴 C 프로그래밍

쉽게 풀어쓴 C 프로그래밍 제 11 장상속 1. 상속의개념을이해한다. 2. 상속을이용하여자식클래스를작성할수있다. 3. 상속과접근지정자와의관계를이해한다. 4. 상속시생성자와소멸자가호출되는순서를이해한다. 이번장에서만들어볼프로그램 class Circle { int x, y; int radius;... class Rect { int x, y; int width, height;... 중복 상속의개요

More information

Microsoft PowerPoint - C++ 5 .pptx

Microsoft PowerPoint - C++ 5 .pptx C++ 언어프로그래밍 한밭대학교전자. 제어공학과이승호교수 연산자중복 (operator overloading) 이란? 2 1. 연산자중복이란? 1) 기존에미리정의되어있는연산자 (+, -, /, * 등 ) 들을프로그래머의의도에맞도록새롭게정의하여사용할수있도록지원하는기능 2) 연산자를특정한기능을수행하도록재정의하여사용하면여러가지이점을가질수있음 3) 하나의기능이프로그래머의의도에따라바뀌어동작하는다형성

More information

설계란 무엇인가?

설계란 무엇인가? 금오공과대학교 C++ 프로그래밍 jhhwang@kumoh.ac.kr 컴퓨터공학과 황준하 4 강. 함수와라이브러리함수목차 함수오버로딩 디폴트매개변수 라이브러리함수 clock 함수 난수발생 비버퍼형문자입력 커서이동 프로그래밍문제 1 /21 4 강. 함수와라이브러리함수함수오버로딩 2 /21 함수오버로딩 동일한이름의함수를여러개만들수있음 함수프로파일이달라야함 함수프로파일

More information

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Crash Unity SDK... Log & Crash Search. - Unity3D v4.0 ios

More information

Microsoft PowerPoint - java1-lab5-ImageProcessorTestOOP.pptx

Microsoft PowerPoint - java1-lab5-ImageProcessorTestOOP.pptx 2018 학년도 1 학기 JAVA 프로그래밍 II 514760-1 2018 년봄학기 5/10/2018 박경신 Lab#1 (ImageTest) Lab#1 은영상파일 (Image) 을읽어서정보를출력 Java Tutorials Lesson: Working with Images https://docs.oracle.com/javase/tutorial/2d/images/index.html

More information

1. 표준입출력 C++ : C의모든라이브러리를포함 printf, scanf 함수사용가능예 : int, double, 문자열값을입력받고출력하기 #include <cstdio> int ivar; double dvar; char str[20]; printf("int, dou

1. 표준입출력 C++ : C의모든라이브러리를포함 printf, scanf 함수사용가능예 : int, double, 문자열값을입력받고출력하기 #include <cstdio> int ivar; double dvar; char str[20]; printf(int, dou 2 장더나은 C 로서의 C++ (1) 표준입출력네임스페이스 ( 고전 C++ 와표준 C++) 함수오버로딩디폴트매개변수 new와 delete bool 자료형 C++ is not C C++ 프로그래밍입문 1. 표준입출력 C++ : C의모든라이브러리를포함 printf, scanf 함수사용가능예 : int, double, 문자열값을입력받고출력하기 #include

More information

untitled

untitled if( ) ; if( sales > 2000 ) bonus = 200; if( score >= 60 ) printf(".\n"); if( height >= 130 && age >= 10 ) printf(".\n"); if ( temperature < 0 ) printf(".\n"); // printf(" %.\n \n", temperature); // if(

More information

SRC PLUS 제어기 MANUAL

SRC PLUS 제어기 MANUAL ,,,, DE FIN E I N T R E A L L O C E N D SU B E N D S U B M O TIO

More information

10주차.key

10주차.key 10, Process synchronization (concurrently) ( ) => critical section ( ) / =>, A, B / Race condition int counter; Process A { counter++; } Process B { counter ;.. } counter++ register1 = counter register1

More information

Microsoft PowerPoint - 9ÀÏ°_ÂüÁ¶ÀÚ.ppt

Microsoft PowerPoint - 9ÀÏ°_ÂüÁ¶ÀÚ.ppt 참조자 - 참조자란무엇인가? - 참조자는어떻게만들고사용하는가? - 참조자는포인터와무엇이다른가? 1 참조자 (reference) 란? 참조자 : 객체 ( 타겟 ) 에대한다른이름 ( 별칭 ) 참조자의변화는타겟의변화 참조자만들고반드시초기화 참조자생성 형참조연산자 (&) 참조자이름 = 초기화타겟명 모든항목필수 예 ) int &rsomeref = someint ; 참조자에대한주소연산자

More information

2,. 1 1, 28 31.. 1,....?. 1920, 1931 1. (International Fixed Calendar) (World Calender). 1 13, 1 28. 365 7. 365 7 52 1.,. 1.. 1834 1 52 ( )..,. 1849 (

2,. 1 1, 28 31.. 1,....?. 1920, 1931 1. (International Fixed Calendar) (World Calender). 1 13, 1 28. 365 7. 365 7 52 1.,. 1.. 1834 1 52 ( )..,. 1849 ( 1 1.1.11 1... 1582 13 (1502-1585). ( 46 ) 4. 1 365.25 1, 1 ( 365.2422 ). 730 1 11. 11 128. 1582 10.. (325 ) 3 21, 16 3 11.. 1582 (Christoph Clavius, 1537-1612) 4, 4 4 1700, 1800, 1900 4 1600, 2000. 1582

More information

PRO1_19E [읽기 전용]

PRO1_19E [읽기 전용] PCS 7 NET PC WinCC HMI DP Siemens AG 1999 All rights reserved File: PRO1_19E1 Information and 2 /C7/M7 WinAC 3 STEP 7- S7/C7/M7 4 S7- GRAPH 5 S7- HiGraph 6 S7- SCL 7 CFC M7 8 S7- SFC 9 S7- PDIAG 10 S7-

More information

CPX-E-EC_BES_C_ _ k1

CPX-E-EC_BES_C_ _ k1 CPX-E CPX-E-EC EtherCAT 8071155 2017-07 [8075310] CPX-E-EC CPX-E-EC-KO EtherCAT, TwinCAT (). :, 2 Festo CPX-E-EC-KO 2017-07 CPX-E-EC 1... 4 1.1... 4 1.2... 4 1.3... 4 1.4... 5 1.5... 5 2... 6 2.1... 6

More information

제 1 장 기본 개념

제 1 장 기본 개념 제 1 장기본개념 시스템생명주기 (System Life Cycle) 1. 요구사항 (requirement) 프로젝트들의목적을정의한명세들의집합 입력과출력에관한정보를기술 2. 분석 (analysis) 문제들을다룰수있는작은단위들로나눔 상향식 (bottom-up)/ 하향식 (top-down) 접근방법 3. 설계 (design) 추상데이타타입 (abstract data

More information

Chapter_02-3_NativeApp

Chapter_02-3_NativeApp 1 TIZEN Native App April, 2016 Dept. of software Dankook University http://embedded.dankook.ac.kr/~baeksj 목차 2 Tizen EFL Tizen EFL 3 Tizen EFL Enlightment Foundation Libraries 타이젠핵심코어툴킷 Tizen EFL 4 Tizen

More information

歯PLSQL10.PDF

歯PLSQL10.PDF 10 - SQL*Pl u s Pl / SQL - SQL*P lus 10-1 1 0.1 PL/ SQL SQL*Pl u s. SQL*P lus 10-2 1 0.2 S QL* Pl u s PL/ S QL SQL*Pl u s, Pl / SQL. - PL/ SQL (i npu t ), (s t or e ), (r un). - PL/ SQL s cr i pt,,. -

More information

PRO1_01E [읽기 전용]

PRO1_01E [읽기 전용] PCS 7 Software NET PC WinCC HMI DP Controller Siemens AG 1999 All rights reserved File: PRO1_01E1 2 S7-200 3 S7-200: 4 S7-200: CPU 5 S7-300 6 S7-300: 7 S7-300: CPU 8 S7-400 9 S7-400: 10 S7-400: CPU (1)

More information

슬라이드 1

슬라이드 1 핚국산업기술대학교 제 14 강 GUI (III) 이대현교수 학습안내 학습목표 CEGUI 라이브러리를이용하여, 게임메뉴 UI 를구현해본다. 학습내용 CEGUI 레이아웃의로딩및렌더링. OIS 와 CEGUI 의연결. CEGUI 위젯과이벤트의연동. UI 구현 : 하드코딩방식 C++ 코드를이용하여, 코드내에서직접위젯들을생성및설정 CEGUI::PushButton* resumebutton

More information

03-JAVA Syntax(2).PDF

03-JAVA Syntax(2).PDF JAVA Programming Language Syntax of JAVA (literal) (Variable and data types) (Comments) (Arithmetic) (Comparisons) (Operators) 2 HelloWorld application Helloworldjava // class HelloWorld { //attribute

More information

Javascript.pages

Javascript.pages JQuery jquery part1 JavaScript : e-mail:leseraphina@naver.com http://www.webhard.co.kr I.? 2 ......,,. : : html5 ; ; .

More information

01-OOPConcepts(2).PDF

01-OOPConcepts(2).PDF Object-Oriented Programming Concepts Tel: 02-824-5768 E-mail: hhcho@selabsoongsilackr? OOP (Object) (Encapsulation) (Message) (Class) (Inheritance) (Polymorphism) (Abstract Class) (Interface) 2 1 + = (Dependency)

More information

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf("hihi\n"); } warning: conflicting types for functiona

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf(hihi\n); } warning: conflicting types for functiona 이름 : 학번 : A. True or False: 각각항목마다 True 인지 False 인지적으세요. 1. (Python:) randint 함수를사용하려면, random 모듈을 import 해야한다. 2. (Python:) '' (single quote) 는한글자를표현할때, (double quote) 는문자열을표현할때사용한다. B. 다음에러를수정하는방법을적으세요.

More information

0. 표지에이름과학번을적으시오. (6) 1. 변수 x, y 가 integer type 이라가정하고다음빈칸에 x 와 y 의계산결과값을적으시오. (5) x = (3 + 7) * 6; x = 60 x = (12 + 6) / 2 * 3; x = 27 x = 3 * (8 / 4

0. 표지에이름과학번을적으시오. (6) 1. 변수 x, y 가 integer type 이라가정하고다음빈칸에 x 와 y 의계산결과값을적으시오. (5) x = (3 + 7) * 6; x = 60 x = (12 + 6) / 2 * 3; x = 27 x = 3 * (8 / 4 Introduction to software design 2012-1 Final 2012.06.13 16:00-18:00 Student ID: Name: - 1 - 0. 표지에이름과학번을적으시오. (6) 1. 변수 x, y 가 integer type 이라가정하고다음빈칸에 x 와 y 의계산결과값을적으시오. (5) x = (3 + 7) * 6; x = 60 x

More information

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사)

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사) Java Program Performance Tuning ( ) n (Primes0) static List primes(int n) { List primes = new ArrayList(n); outer: for (int candidate = 2; n > 0; candidate++) { Iterator iter = primes.iterator(); while

More information

Dialog Box 실행파일을 Web에 포함시키는 방법

Dialog Box 실행파일을 Web에 포함시키는 방법 DialogBox Web 1 Dialog Box Web 1 MFC ActiveX ControlWizard workspace 2 insert, ID 3 class 4 CDialogCtrl Class 5 classwizard OnCreate Create 6 ActiveX OCX 7 html 1 MFC ActiveX ControlWizard workspace New

More information

Microsoft PowerPoint - es-arduino-lecture-03

Microsoft PowerPoint - es-arduino-lecture-03 임베디드시스템개론 : Arduino 활용 Lecture #3: Button Input & FND Control 2012. 3. 25 by 김영주 강의목차 디지털입력 Button switch 입력 Button Debounce 7-Segment FND : 직접제어 7-Segment FND : IC 제어 2 디지털입력 : Switch 입력 (1) 실습목표 아두이노디지털입력처리실습

More information

프입2-강의노트-C++배경

프입2-강의노트-C++배경 Chapter 00. C++ 배경 박종혁교수 UCS Lab Tel: 970-6702 Email: jhpark1@seoultech.ac.kr SeoulTech 2019-2 nd 프로그래밍입문 (2) 2 프로그래밍과프로그래밍언어 2 프로그래밍언어 기계어 (machine language) 0, 1 의이진수로구성된언어 컴퓨터의 CPU 는본질적으로기계어만처리가능 어셈블리어

More information

3ÆÄÆ®-14

3ÆÄÆ®-14 chapter 14 HTTP >>> 535 Part 3 _ 1 L i Sting using System; using System.Net; using System.Text; class DownloadDataTest public static void Main (string[] argv) WebClient wc = new WebClient(); byte[] response

More information