ๆญฏ7์žฅ.PDF

Size: px
Start display at page:

Download "ๆญฏ7์žฅ.PDF"

Transcription

1 7 Hello!! C

2 2

3 . 3

4 ([] ) < > [ ]; int array[10]; < > [ ][ ]; int array [3] [5]; 4

5 < > [ ]={ x1,,x10} ( ); (,). ({}). : int array[10]={1,2,3,4,5,6,7,8,9,10}; (" "). : char array[7]="turbo-c"; 5

6 int array[2][3]={{1,2},{3,4},{5,6}}; int array[3][10]={"turbo-c","is","easy!"}; 6

7 [ 7-1] #include <stdio.h> #define MAX 10 int prn(int x[max]); main(){ int num[max] = {1,2,3,4,5,6,7,8,9,10}; prn(&num[0]); } int prn(int x[max]){ int i; printf("the address of array name is %d \n", x); for ( i = 0 ; i < MAX ; i++ ){ printf("address : %d\t", &x[i]); printf("value : %d\n", x[i]); } } /* prn */ 7

8 [ 7-1] [ ] The address of array name is 404 ADDRESS : 4076 VALUE : 1 ADDRESS : 4078 VALUE : 2 ADDRESS : 4080 VALUE : 3 : : : : ADDRESS : 4094 VALUE : 10 8

9 . pnt a, pnt a. * ; 9

10 [ 7-2] #include<stdio.h> main() { int a = 50; int *pnt; } printf("a=%d pnt=%d\n ",a,pnt); [ ] a=50 pnt=

11 [ 7-3] #include<stdio.h> main() { int a = 50; int *pnt; /* */ /* */ } pnt = &a; /* */ printf("a=%d pnt=%d \n",a,pnt); [ ] a=50 pnt=

12 : int_pnt2=int_pnt1+1; int_pnt1 (int==> 2byte) int_pnt int_pnt1 int_pnt2 ` ' int_pnt++ ==> 2byte float_pnt++ ==> 4byte 12

13 [ 7-4] #include <stdio.h> #define MAX 10 int i_array[max] = {1, 2, 3, 4, 5, 6, 7, 8, 9,10}; /* */ int I; int *i_pnt; /* */ float f_array[max] = {0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}; /* */ float *f_pnt; /* */ main(){ i_pnt = i_array; /* */ f_pnt = f_array; /* */ [ ] for ( i=0 ; i<max ; i++) printf("%d\t%f\n",*i_pnt++,*f_pnt++); } : :

14 (*) ([]) *(pnt+i) : pnt i. array[i] : array I. : char *pnt[3]={`kim',`lee',`park'}; pnt malloc(), calloc() 14

15 [ 7-5] #include<stdio.h> main(){ int a[5]={1,2,3,4}; int *pnt; } pnt = a; printf("%d %d %d %d \n",*pnt,*(pnt+1),*(pnt+2),*(pnt+3)); printf("%d %d %d %d \n",a[0],a[1],a[2],a[3]) ; [ ] /* */ 15

16 [ 7-6] #include<stdio.h> main(){ int a[2][2] = { 1,2, 3,4 }; int *pnt; pnt=a[0]; printf("%d %d\n%d %d\n",*pnt,*(pnt+1),*(pnt+1*2),*(pnt+1*2+1)); printf("%d %d\n%d %d\n",a[0][0],a[0][1],a[1][0],a[1][1]); } [ ] /* */

17 [ 7-7] #include<stdio.h> main() { int a[4] = {1, 2, 3, 4}; int *pnt; } pnt=a; printf("%d %d %d %d \n",pnt[0],pnt[1],pnt[2],pnt[3]); [ ]

18 main int main() int main( argc, argv ) int argc; char **argv; char **string_array={"dog","cat","lion","tiger"}; void 18

19 [ 7-8] #include<stdio.h> void main() { char *pnt[] = {"Chan","Ho","Park"}; char array[3][5]= {"Chan","Ho","Park"}; int j; printf("memory address of pointer array pnt\n"); printf("pnt => %p\n",pnt); for(j=0;j<3;j++) printf("pnt[%d] (address %p) => %s\n",j,pnt[j],pnt[j]); /* */ /* */ printf("\nmemory address of two-dimensional array\n"); printf("array => %p\n",array); for(j=0;j<3;j++) printf("array[%d] (address %p) => %s\n",j,array[j], array[j]); } 19

20 [ 7-8] [ ] memory address of pointer array pnt pnt => 1747:0FF4 pnt[0] (address 16FB:00AF) => Chan pnt[1] (address 16FB:00B4) => Ho pnt[2] (address 16FB:00B7) => Park memory address of two-dimensional arrayarray => 1747:0FE4 array[0] (address 1747:0FE4) => Chan array[1] (address 1747:0FE9) => Ho array[2] (address 1747:0FEE) => Park 20

21 [ 7-9] #include<stdio.h> main() { int x; int *pnt=&x; int **p_pnt=&pnt; /* pnt x */ /* p_pnt pnt */ } **p_pnt=100; printf("x=%d\n",x); /* x 100 */ [ ] x=100 21

22 ASCII char char char array[6]="seoul"; 22

23 [ 7-10] /* */ #include <stdio.h> main() { char ch = 'a'; char num = '2'; } printf("ch=%c, num=%c\n",ch,num); [ ] ch=a, num=2 23

24 char *pnt="hello"; pnt `h'. char pnt[]="hello"; ==> `h. 24

25 gets(), scanf() stdio.h gets() gets(*str); str scanf() scanf("%s",*str); str 25

26 [ 7-11] #include <stdio.h> main() { char array[20]; } printf("enter a string : "); gets(array); printf("the received string : %s\n", array); [ ] Enter a string : I love you. The received string : I love you. 26

27 [ 7-12] #include <stdio.h> main() { char season[10]; char month[10]; printf("enter season and month\n"); scanf("%s%s", season, month); printf("season = %s, month = %s", season, month); } [ ] Enter season and month spring May season = spring, month = May 27

28 puts(), prinf() stdio.h puts() puts(*str); printf() str printf("%s",str); str 28

29 [ 7-13] /* Example using puts() library function */ #include <stdio.h> main(){ char *a="how"; char *b="old"; char string1[]="are"; char string2[]="you!"; puts(a); puts(b); puts(string1); puts(string2); [ ] } How old are you! 29

30 [ 7-14] /* Example using printf() library function */ #include <stdio.h> main(){ char f_name[30] = "Michael"; char l_name[30] = "Jordan"; } printf("what`s your name?\n"); printf("f_name : %s\n", f_name); printf("l_name : %s\n", l_name); [ ] What`s your name? f_name : Michael l_name : Jordan 30

31 string.h, strlen() size_t strlen(char *str);, strcpy() str char *strcpy(char *destination, char *source);, strcat() source destination strcat(char *destination, char *source); source destination 31

32 [ 7-15] /* Program for an example of string library functions */ #include <stdio.h> #include <string.h> main(){ char string[30]; int a; printf("enter a string : "); gets(string); a=strlen(string); printf("the length of string is %d.",a); } [ ] Enter a string : abcdefg The length of string is 7. 32

33 [ 7-16] /* Example using strcpy() function */ #include <stdio.h> #include <string.h> main(){ char str1[80],str2[80],*str3; printf("enter string1 : "); gets(str1); printf("enter string2 : "); gets(str2); str3=strcpy(str1,str2); printf("%s is copied in str1\n",str3); } [ ] Enter string1 : Korea Enter string2 : aerok aerok is copied in str1 33

34 [ 7-17] /* Example using strcat() library function */ #include <stdio.h> #include <string.h> main(){ char dest[80]; char sour[80]; } gets(dest); printf("this string, [%s] is in dest.\n", dest); gets(sour); strcat(dest, sour); printf("this string, [%s] is in sour.\n", sour); printf("this string, [%s] is in dest.", dest); 34

35 [ 7-17] [ ] Hi, This string, [Hi, ] is in dest. everyone. This string, [everyone.] is in sour. This string, [Hi, everyone.] is in dest. 35

36 , strchr() strchr(char *a, int b); a b, strlwr() strupr() strlwr(char *ptr); ptr 36

37 [ 7-18] /* Example using srtchr() library function */ #include <stdio.h> #include <string.h> void main(void){ char a[80],*d; int c; printf("enter a string : "); gets(a); printf("the character to be searched : "); c=getchar(); d=strchr(a,c); printf("the character you are searching,"); printf("'%c'is discovered %d position in a.",c,d-a+1); } 37

38 [ 7-18] [ ] Enter a string : beautiful The character to be searched : l The character you are searching,'l'is discovered 9 position in a. 38

39 [ 7-19] /* Example using strlwr() and strupr() */ #include <stdio.h> #include <ctype.h> main(){ char a,b,c; char ch; printf("enter alphabet : "); scanf("%c", &ch); b = tolower( ch ); printf("convert into lower case letter : %c\n",b); c = toupper( ch ); printf("convert into upper case letter : %c\n",c); } [ ] Enter alphabet : a Convert into lower case letter : a Convert into upper case letter : A 39

chap7.PDF

chap7.PDF 7 Hello!! C 2 . 3 ([] ) < > [ ]; int array[10]; < > [ ][ ]; int array [3] [5]; 4 < > [ ]={ x1,,x10} ( ); (,). ({}). : int array[10]={1,2,3,4,5,6,7,8,9,10}; (" "). : char array[7]="turbo-c"; 5 int array[2][3]={{1,2},{3,4},{5,6}};

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

chap8.PDF

chap8.PDF 8 Hello!! C 2 3 4 struct - {...... }; struct jum{ int x_axis; int y_axis; }; struct - {...... } - ; struct jum{ int x_axis; int y_axis; }point1, *point2; 5 struct {....... } - ; struct{ int x_axis; int

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

61 62 63 64 234 235 p r i n t f ( % 5 d :, i+1); g e t s ( s t u d e n t _ n a m e [ i ] ) ; if (student_name[i][0] == \ 0 ) i = MAX; p r i n t f (\ n :\ n ); 6 1 for (i = 0; student_name[i][0]!= \ 0&&

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

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜ Chapter 10 ํฌ์ธํ„ฐ 01 ํฌ์ธํ„ฐ์˜๊ธฐ๋ณธ 02 ์ธ์ž์ „๋‹ฌ๋ฐฉ๋ฒ• 03 ํฌ์ธํ„ฐ์™€๋ฐฐ์—ด 04 ํฌ์ธํ„ฐ์™€๋ฌธ์ž์—ด ๋ณ€์ˆ˜์˜์ฃผ์†Œ๋ฅผ์ €์žฅํ•˜๋Š”ํฌ์ธํ„ฐ์—๋Œ€ํ•ด์•Œ์•„๋ณธ๋‹ค. ํ•จ์ˆ˜์˜์ธ์ž๋ฅผ๊ฐ’๊ณผ์ฃผ์†Œ๋กœ์ „๋‹ฌํ•˜๋Š”๋ฐฉ๋ฒ•์„์•Œ์•„๋ณธ๋‹ค. ํฌ์ธํ„ฐ์™€๋ฐฐ์—ด์˜๊ด€๊ณ„๋ฅผ์•Œ์•„๋ณธ๋‹ค. ํฌ์ธํ„ฐ์™€๋ฌธ์ž์—ด์˜๊ด€๊ณ„๋ฅผ์•Œ์•„๋ณธ๋‹ค. 1.1 ํฌ์ธํ„ฐ์„ ์–ธ ํฌ์ธํ„ฐ์„ ์–ธ๋ฐฉ๋ฒ• ์ž๋ฃŒํ˜• * ๋ณ€์ˆ˜๋ช… ; int * ptr; * ์—ฐ์‚ฐ์ž๊ฐ€ํ•˜๋‚˜์ด๋ฉด 1 ์ฐจ์›ํฌ์ธํ„ฐ 1 ์ฐจ์›ํฌ์ธํ„ฐ๋Š”์ผ๋ฐ˜๋ณ€์ˆ˜์˜์ฃผ์†Œ๋ฅผ๊ฐ’์œผ๋กœ๊ฐ€์ง

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

ๆญฏ9์žฅ.PDF

ๆญฏ9์žฅ.PDF 9 Hello!! C printf() scanf() getchar() putchar() gets() puts() fopen() fclose() fprintf() fscant() fgetc() fputs() fgets() gputs() fread() fwrite() fseek() ftell() I/O 2 (stream) C (text stream) : `/n'

More information

untitled

untitled 1 hamks@dongguk.ac.kr (goal) (abstraction), (modularity), (interface) (efficient) (robust) C Unix C Unix (operating system) (network) (compiler) (machine architecture) 1 2 3 4 5 6 7 8 9 10 ANSI C Systems

More information

13 ์ฃผ์ฐจ๋ฌธ์ž์—ด์˜ํ‘œํ˜„๊ณผ์ž…์ถœ๋ ฅ

13 ์ฃผ์ฐจ๋ฌธ์ž์—ด์˜ํ‘œํ˜„๊ณผ์ž…์ถœ๋ ฅ 13 ์ฃผ์ฐจ๋ฌธ์ž์—ด์˜ํ‘œํ˜„๊ณผ์ž…์ถœ๋ ฅ ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ C ์–ธ์–ด๋ฅผ์ด์šฉํ•˜์—ฌ๋ฌธ์ž์—ด์„์ฒ˜๋ฆฌํ•˜๊ธฐ์œ„ํ•ด์„œ๋Š”๋ฌธ์žํ˜•์˜๋ฐฐ์—ด์ด๋‚˜ํฌ์ธํ„ฐ๋ฅผ์‚ฌ์šฉํ•˜๊ฒŒ๋œ๋‹ค. ๋ฌธ์ž์—ด์„์ฒ˜๋ฆฌํ•˜๋Š”๋™์ž‘์œผ๋กœ๋Š”๋‹จ์ˆœํ•˜๊ฒŒ๋ฌธ์ž์—ด์˜์ž…๋ ฅ์ด๋‚˜์ถœ๋ ฅ๊ธฐ๋Šฅ์ด์™ธ์—๋„๋ฌธ์ž์—ด์˜๋ณต์‚ฌ๋‚˜์น˜ํ™˜, ๋ฌธ์ž์—ด์˜๊ธธ์ด๋ฅผ๊ตฌํ•˜๊ฑฐ๋‚˜๋ฌธ์ž์—ด์„๋น„๊ตํ•˜๋Š”๊ธฐ๋Šฅ๋“ฑ๋งŽ์€๊ธฐ๋Šฅ์„ํ•„์š”๋กœํ•œ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜์ด๋Ÿฌํ•œ๊ธฐ๋Šฅ๋“ค์„๋ชจ๋‘๊ตฌํ˜„ํ•˜๊ธฐ๋ž€๋งค์šฐ๊นŒ๋‹ค๋กœ์šฐ๋ฉฐ,

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

Microsoft PowerPoint - 06_(C_Programming)_(Korean)_Characters_Strings

Microsoft PowerPoint - 06_(C_Programming)_(Korean)_Characters_Strings C Programming ๋ฌธ์ž์™€๋ฌธ์ž์—ด (Characters and Strings) Seo, Doo-Ok Clickseo.com clickseo@gmail.com ๋ชฉ ์ฐจ ๋ฌธ์ž์ฒ˜๋ฆฌ ๋ฌธ์ž์—ด์ฒ˜๋ฆฌ 2 ๋ฌธ์ž์ฒ˜๋ฆฌ ๋ฌธ์ž์ฒ˜๋ฆฌ ๋ฌธ์ž๋ถ„๋ฅ˜ํ•จ์ˆ˜ ๋ฌธ์ž๋ณ€ํ™˜ํ•จ์ˆ˜ ๋ฌธ์ž์—ด์ฒ˜๋ฆฌ 3 ๋ฌธ์ž๋ถ„๋ฅ˜ํ•จ์ˆ˜ (1/3) ๋ฌธ์ž๋ถ„๋ฅ˜ (Character classification) ํ•จ์ˆ˜ : ์˜๋ฌธ๋Œ€์†Œ๋ฌธ์ž ์˜๋ฌธ๋Œ€์†Œ๋ฌธ์ž๋กœ๋ถ„๋ฅ˜๋˜๋Š”๋ฌธ์ž์ธ์ง€์—ฌ๋ถ€๋ฅผํ™•์ธํ•˜๋Š”ํ•จ์ˆ˜

More information

Microsoft PowerPoint - 10์žฅ ๋ฌธ์ž์—ด pptx

Microsoft PowerPoint - 10์žฅ ๋ฌธ์ž์—ด pptx C ํ”„๋กœ๊ทธ๋ž˜๋ฐ๋ฐ์‹ค์Šต 10. ๋ฌธ์ž์—ด ์„ธ์ข…๋Œ€ํ•™๊ต ๋ชฉ์ฐจ 1) ๋ฌธ์ž์—ด์ด๋ž€? 2) ๋ฌธ์ž์—ด๊ณผํฌ์ธํ„ฐ 3) ๋ฌธ์ž์—ด์˜๋ฐฐ์—ด 4) ๋ฌธ์ž์—ด์ฒ˜๋ฆฌํ•จ์ˆ˜ 5) ๋ฌธ์ž์—ด๋ฐ๋ฌธ์ž์ž…์ถœ๋ ฅ 2 1) ๋ฌธ์ž์—ด์ด๋ž€ ๋ฌธ์ž๋ฐฐ์—ด ( ๋ณต์Šต ) ์›์†Œ๊ฐ€๋ฌธ์ž์ธ๋ฐฐ์—ด ๊ฐ๋ฐฐ์—ด์›์†Œ๋ฅผํ•˜๋‚˜์˜๋‹จ์œ„๋กœ์ฒ˜๋ฆฌ : ์ดˆ๊ธฐํ™”, ์ž…์ถœ๋ ฅ char str[8] = {'H','e','l','l','o'}; // ๋ฌธ์ž๋กœ์ดˆ๊ธฐํ™” int i; for (i=0

More information

๋ฌธ์„œ์˜ ์ œ๋ชฉ ๋‚˜๋ˆ”๋ช…์กฐR, 40pt

๋ฌธ์„œ์˜ ์ œ๋ชฉ  ๋‚˜๋ˆ”๋ช…์กฐR, 40pt ์ด๋ฌธ์„œ๋Š”๋‚˜๋ˆ”๊ธ€๊ผด๋กœ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์„ค์น˜ํ•˜๊ธฐ 11์ฐจ์‹œ : ํ•จ์ˆ˜๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น๋‹ค์ฐจ์›๋ฐฐ์—ด ํ”„๋กœ๊ทธ๋ž˜๋ฐ๋ฐ์‹คํ—˜ ์ œ 11์ฃผ ๋™๊ตญ๋Œ€ํ•™๊ต์กฐ์˜์„ 6.6 ํ•จ์ˆ˜์ธ์ž๋กœ์จ์˜๋ฐฐ์—ด - ํ•จ์ˆ˜์ •์˜์—์„œ๋ฐฐ์—ด๋กœ์„ ์–ธ๋œํ˜•์‹๋งค๊ฐœ๋ณ€์ˆ˜๋Š” pointer์ž„. - ํ•จ์ˆ˜์˜์ธ์ž๋กœ๋ฐฐ์—ด์ด์ „๋‹ฌ๋˜๋ฉด๋ฐฐ์—ด์˜๊ธฐ๋ณธ์ฃผ์†Œ๊ฐ€ ( ๋ฐฐ์—ด์˜๋‚ด์šฉ์ด์•„๋‹˜ ) call-by-value๋กœ์ „๋‹ฌ๋จ. - ๋ฐฐ์—ด์›์†Œ๋Š”๋ณต์‚ฌ๋˜์ง€์•Š์Œ. 2 ( ์˜ˆ ) #include

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

11์žฅ ํฌ์ธํ„ฐ

11์žฅ ํฌ์ธํ„ฐ ์‰ฝ๊ฒŒํ’€์–ด์“ด C ์–ธ์–ด Express ์ œ 12 ์žฅ๋ฌธ์ž์™€๋ฌธ์ž์—ด ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ์ธ๊ฐ„์€๋ฌธ์ž๋ฅผ์‚ฌ์šฉํ•˜์—ฌ์ •๋ณด๋ฅผํ‘œํ˜„ํ•˜๋ฏ€๋กœ๋ฌธ์ž์—ด์€ํ”„๋กœ๊ทธ๋žจ์—์„œ์ค‘์š”ํ•œ์œ„์น˜๋ฅผ์ฐจ์ง€ํ•˜๊ณ ์žˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œ๋Š” C ์—์„œ์˜๋ฌธ์ž์—ด์ฒ˜๋ฆฌ๋ฐฉ๋ฒ•์—๋Œ€ํ•˜์—ฌ์ž์„ธํžˆ์‚ดํŽด๋ณผ๊ฒƒ์ด๋‹ค. ๋ฌธ์ž์˜์ค‘์š”์„ฑ ์ธ๊ฐ„ํ•œํ…Œํ…์ŠคํŠธ๋Š”๋Œ€๋‹จํžˆ์ค‘์š”ํ•˜๋‹ค.

More information

Microsoft PowerPoint - chap10-ํ•จ์ˆ˜์˜ํ™œ์šฉ.pptx

Microsoft PowerPoint - chap10-ํ•จ์ˆ˜์˜ํ™œ์šฉ.pptx #include int main(void) { int num; printf( Please enter an integer: "); scanf("%d", &num); if ( num < 0 ) printf("is negative.\n"); printf("num = %d\n", num); return 0; } 1 ํ•™์Šต๋ชฉํ‘œ ์ค‘ ๊ฐ’์— ์˜ํ•œ ์ „๋‹ฌ ๋ฐฉ๋ฒ•๊ณผ

More information

Microsoft PowerPoint - ์ œ9๊ฐ• ๋ฌธ์ž์—ด

Microsoft PowerPoint - ์ œ9๊ฐ• ๋ฌธ์ž์—ด ์ œ11์žฅ ๋ฌธ์ž์—ด ๋ฌธ์ž์—ด์ •์˜ ๋ฌธ์ž์—ด๊ณผํฌ์ธํ„ฐ, ๋ฌธ์ž์—ด๊ณผ๋ฐฐ์—ด 2 ์ฐจ์›๋ฌธ์ž์—ด๋ฐฐ์—ด, 2 ์ฐจ์›๋ฌธ์ž์—ดํฌ์ธํ„ฐ ๋ฌธ์ž์—ดํ•จ์ˆ˜, ํ—ค๋”ํŒŒ์ผ string.h ctype.h strlen(), strcat(), strcpy(), strstr(), strchr(), strcmp(), strtok() getc(), putc(), fgetc(), fputc(), gets(), puts(),

More information

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 #define _CRT_SECURE_NO_WARNINGS #include #include main() { char ch; printf(" ๋ฌธ์ž 1๊ฐœ๋ฅผ์ž…๋ ฅํ•˜์‹œ์˜ค : "); scanf("%c", &ch); if (isalpha(ch))

More information

Microsoft PowerPoint - chap13-์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ.pptx

Microsoft PowerPoint - chap13-์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ.pptx #include int main(void) int num; printf( Please enter an integer: "); scanf("%d", &num); if ( num < 0 ) printf("is negative.\n"); printf("num = %d\n", num); return 0; 1 ํ•™์Šต๋ชฉํ‘œ ์ŠคํŠธ๋ฆผ์˜ ๊ธฐ๋ณธ ๊ฐœ๋…์„ ์•Œ์•„๋ณด๊ณ ,

More information

์Šฌ๋ผ์ด๋“œ 1

์Šฌ๋ผ์ด๋“œ 1 -Part3- ์ œ 4 ์žฅ๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น๊ณผ๊ฐ€๋ณ€์ธ ์ž ํ•™์Šต๋ชฉ์ฐจ 4.1 ๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น 4.1 ๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น 4.1 ๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น ๋ฐฐ์šธ๋‚ด์šฉ 1 ํ”„๋กœ์„ธ์Šค์˜๋ฉ”๋ชจ๋ฆฌ๊ณต๊ฐ„ 2 ๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น์˜ํ•„์š”์„ฑ 4.1 ๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น (1/6) ํ”„๋กœ์„ธ์Šค์˜๋ฉ”๋ชจ๋ฆฌ๊ตฌ์กฐ ์ฝ”๋“œ์˜์—ญ : ํ”„๋กœ๊ทธ๋žจ์‹คํ–‰์ฝ”๋“œ, ํ•จ์ˆ˜๋“ค์ด์ €์žฅ๋˜๋Š”์˜์—ญ ์Šคํƒ์˜์—ญ : ๋งค๊ฐœ๋ณ€์ˆ˜, ์ง€์—ญ๋ณ€์ˆ˜, ์ค‘๊ด„ํ˜ธ ( ๋ธ”๋ก ) ๋‚ด๋ถ€์—์ •์˜๋œ๋ณ€์ˆ˜๋“ค์ด์ €์žฅ๋˜๋Š”์˜์—ญ

More information

์‹ฌํ™”ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์„ค๊ณ„

์‹ฌํ™”ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์„ค๊ณ„ ์‹ฌํ™”ํ”„๋กœ๊ทธ๋ž˜๋ฐ์„ค๊ณ„ 5 Strings ์ž„ํ•„์˜ฅ 1 ๋ฌธ์ž์—ด ๋ฌธ์ž์—ด (string literal) : ๋ฌธ์ž๋“ค์ด ๋กœ๋‘˜๋Ÿฌ์‹ธ์ธ๊ฒƒ. ์˜ˆ ) "When you come to a fork in the road, take it. "Candy\nIs dandy\nbut liquor\nis quicker.\n --Ogden Nash\n Candy Is dandy But liquor

More information

Microsoft PowerPoint - Chapter_08.pptx

Microsoft PowerPoint - Chapter_08.pptx ํ”„๋กœ๊ทธ๋ž˜๋ฐ 1 1 Chapter 8. Pointers May, 2016 Dept. of software Dankook University http://embedded.dankook.ac.kr/~baeksj ํฌ์ธํ„ฐ์˜๊ฐœ๋… (1/6) 2 ํฌ์ธํ„ฐ๋ž€ : ๋‹ค๋ฅธ๊ฐ์ฒด๋ฅผ๊ฐ€๋ฆฌํ‚ค๋Š”๋ณ€์ˆ˜ ๊ฐ์ฒด์˜๋ฉ”๋ชจ๋ฆฌ์ฃผ์†Œ๋ฅผ์ €์žฅํ•˜๋Š”๋ณ€์ˆ˜ ๊ธฐํ˜ธ์ ๋ฐฉ์‹ (symbolic way) ์œผ๋กœ์ฃผ์†Œ์‚ฌ์šฉ ํฌ์ธํ„ฐ์™€๊ด€๋ จ๋œ์—ฐ์‚ฐ์ž

More information

11์žฅ ํฌ์ธํ„ฐ

11์žฅ ํฌ์ธํ„ฐ Dynamic Memory and Linked List 1 ๋™์ ํ• ๋‹น๋ฉ”๋ชจ๋ฆฌ์˜๊ฐœ๋… ํ”„๋กœ๊ทธ๋žจ์ด๋ฉ”๋ชจ๋ฆฌ๋ฅผํ• ๋‹น๋ฐ›๋Š”๋ฐฉ๋ฒ• ์ •์  (static) ๋™์  (dynamic) ์ •์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น ํ”„๋กœ๊ทธ๋žจ์ด์‹œ์ž‘๋˜๊ธฐ์ „์—๋ฏธ๋ฆฌ์ •ํ•ด์ง„ํฌ๊ธฐ์˜๋ฉ”๋ชจ๋ฆฌ๋ฅผํ• ๋‹น๋ฐ›๋Š”๊ฒƒ ๋ฉ”๋ชจ๋ฆฌ์˜ํฌ๊ธฐ๋Š”ํ”„๋กœ๊ทธ๋žจ์ด์‹œ์ž‘ํ•˜๊ธฐ์ „์—๊ฒฐ์ • int i, j; int buffer[80]; char name[] = data structure"; ์ฒ˜์Œ์—๊ฒฐ์ •๋œํฌ๊ธฐ๋ณด๋‹ค๋”ํฐ์ž…๋ ฅ์ด๋“ค์–ด์˜จ๋‹ค๋ฉด์ฒ˜๋ฆฌํ•˜์ง€๋ชปํ•จ

More information

untitled

untitled int i = 10; char c = 69; float f = 12.3; int i = 10; char c = 69; float f = 12.3; printf("i : %u\n", &i); // i printf("c : %u\n", &c); // c printf("f : %u\n", &f); // f return 0; i : 1245024 c : 1245015

More information

3. 1 ํฌ์ธํ„ฐ๋ž€ 3. 2 ํฌ์ธํ„ฐ๋ณ€์ˆ˜์˜์„ ์–ธ๊ณผ์‚ฌ์šฉ 3. 3 ๋‹ค์ฐจ์›ํฌ์ธํ„ฐ๋ณ€์ˆ˜์˜์„ ์–ธ๊ณผ์‚ฌ์šฉ 3. 4 ์ฃผ์†Œ์˜๊ฐ€๊ฐ์‚ฐ 3. 5 ํ•จ์ˆ˜ํฌ์ธํ„ฐ

3. 1 ํฌ์ธํ„ฐ๋ž€ 3. 2 ํฌ์ธํ„ฐ๋ณ€์ˆ˜์˜์„ ์–ธ๊ณผ์‚ฌ์šฉ 3. 3 ๋‹ค์ฐจ์›ํฌ์ธํ„ฐ๋ณ€์ˆ˜์˜์„ ์–ธ๊ณผ์‚ฌ์šฉ 3. 4 ์ฃผ์†Œ์˜๊ฐ€๊ฐ์‚ฐ 3. 5 ํ•จ์ˆ˜ํฌ์ธํ„ฐ - Part2-3 3. 1 ํฌ์ธํ„ฐ๋ž€ 3. 2 ํฌ์ธํ„ฐ๋ณ€์ˆ˜์˜์„ ์–ธ๊ณผ์‚ฌ์šฉ 3. 3 ๋‹ค์ฐจ์›ํฌ์ธํ„ฐ๋ณ€์ˆ˜์˜์„ ์–ธ๊ณผ์‚ฌ์šฉ 3. 4 ์ฃผ์†Œ์˜๊ฐ€๊ฐ์‚ฐ 3. 5 ํ•จ์ˆ˜ํฌ์ธํ„ฐ 3.1 ํฌ์ธํ„ฐ๋ž€ รผ รผ รผ. รผ. รผ. รผ ( ) ? 3.1 รผ. รผ C ( ).? รผ รผ PART2-4 รผ ( ) PART3-4 3.2 ํฌ์ธํ„ฐ๋ณ€์ˆ˜์˜์„ ์–ธ๊ณผ์‚ฌ์šฉ 3.2 ํฌ์ธํ„ฐ ๋ณ€์ˆ˜์˜ ์„ ์–ธ๊ณผ ์‚ฌ์šฉ (1/8) ํฌ์ธํ„ฐ ๋ณ€์ˆ˜์˜

More information

๋ชฉ์ฐจ ํฌ์ธํ„ฐ์˜๊ฐœ์š” ๋ฐฐ์—ด๊ณผํฌ์ธํ„ฐ ํฌ์ธํ„ฐ์˜๊ตฌ์กฐ ์‹ค๋ฌด์‘์šฉ์˜ˆ์ œ C 2

๋ชฉ์ฐจ ํฌ์ธํ„ฐ์˜๊ฐœ์š” ๋ฐฐ์—ด๊ณผํฌ์ธํ„ฐ ํฌ์ธํ„ฐ์˜๊ตฌ์กฐ ์‹ค๋ฌด์‘์šฉ์˜ˆ์ œ C 2 ์ œ 8 ์žฅ. ํฌ์ธํ„ฐ ๋ชฉ์ฐจ ํฌ์ธํ„ฐ์˜๊ฐœ์š” ๋ฐฐ์—ด๊ณผํฌ์ธํ„ฐ ํฌ์ธํ„ฐ์˜๊ตฌ์กฐ ์‹ค๋ฌด์‘์šฉ์˜ˆ์ œ C 2 ํฌ์ธํ„ฐ์˜๊ฐœ์š” ํฌ์ธํ„ฐ๋ž€? ์ฃผ์†Œ๋ฅผ๋ณ€์ˆ˜๋กœ๋‹ค๋ฃจ๊ธฐ์œ„ํ•œ์ฃผ์†Œ๋ณ€์ˆ˜ ๋ฉ”๋ชจ๋ฆฌ์˜๊ธฐ์–ต๊ณต๊ฐ„์„๋ณ€์ˆ˜๋กœ์จ์‚ฌ์šฉํ•˜๋Š”๊ฒƒ ํฌ์ธํ„ฐ๋ณ€์ˆ˜๋ž€๋ฐ์ดํ„ฐ๋ณ€์ˆ˜๊ฐ€์ €์žฅ๋˜๋Š”์ฃผ์†Œ์˜๊ฐ’์„ ๋ณ€์ˆ˜๋กœ์ทจ๊ธ‰ํ•˜๊ธฐ์œ„ํ•œ๋ณ€์ˆ˜ C 3 ํฌ์ธํ„ฐ์˜๊ฐœ์š” ํฌ์ธํ„ฐ๋ณ€์ˆ˜๋ฐ์ดˆ๊ธฐํ™” * ๋ณ€์ˆ˜๋ฐ์ดํ„ฐ์˜๋ฐ์ดํ„ฐํ˜•๊ณผ๊ฐ™์€๋ฐ์ดํ„ฐํ˜•์„ํฌ์ธํ„ฐ ๋ณ€์ˆ˜์˜๋ฐ์ดํ„ฐํ˜•์œผ๋กœ์„ ์–ธ ์ผ๋ฐ˜๋ณ€์ˆ˜์™€ํฌ์ธํ„ฐ๋ณ€์ˆ˜๋ฅผ๊ตฌ๋ณ„ํ•˜๊ธฐ์œ„ํ•ด

More information

์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ์ธ๊ฐ„์€๋ฌธ์ž๋ฅผ์‚ฌ์šฉํ•˜์—ฌ์ •๋ณด๋ฅผํ‘œํ˜„ํ•˜๋ฏ€๋กœ๋ฌธ์ž์—ด์€ํ”„๋กœ๊ทธ๋žจ์—์„œ์ค‘์š”ํ•œ์œ„์น˜๋ฅผ์ฐจ์ง€ํ•˜๊ณ ์žˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œ๋Š” C ์—์„œ์˜๋ฌธ์ž์—ด์ฒ˜๋ฆฌ๋ฐฉ๋ฒ•์—๋Œ€ํ•˜์—ฌ์ž์„ธํžˆ์‚ดํŽด๋ณผ๊ฒƒ์ž…๋‹ˆ๋‹ค. 2

์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ์ธ๊ฐ„์€๋ฌธ์ž๋ฅผ์‚ฌ์šฉํ•˜์—ฌ์ •๋ณด๋ฅผํ‘œํ˜„ํ•˜๋ฏ€๋กœ๋ฌธ์ž์—ด์€ํ”„๋กœ๊ทธ๋žจ์—์„œ์ค‘์š”ํ•œ์œ„์น˜๋ฅผ์ฐจ์ง€ํ•˜๊ณ ์žˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œ๋Š” C ์—์„œ์˜๋ฌธ์ž์—ด์ฒ˜๋ฆฌ๋ฐฉ๋ฒ•์—๋Œ€ํ•˜์—ฌ์ž์„ธํžˆ์‚ดํŽด๋ณผ๊ฒƒ์ž…๋‹ˆ๋‹ค. 2 ์ œ 12 ์žฅ๋ฌธ์ž์™€๋ฌธ์ž์—ด ์œ ์ค€๋ฒ” (JUNBEOM YOO) Ver. 2.0 jbyoo@konkuk.ac.kr http://dslab.konkuk.ac.kr ๋ณธ๊ฐ•์˜์ž๋ฃŒ๋Š”์ƒ๋Šฅ์ถœํŒ์‚ฌ์˜ PPT ๊ฐ•์˜์ž๋ฃŒ ๋ฅผ๊ธฐ๋ฐ˜์œผ๋กœ์ œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ์ธ๊ฐ„์€๋ฌธ์ž๋ฅผ์‚ฌ์šฉํ•˜์—ฌ์ •๋ณด๋ฅผํ‘œํ˜„ํ•˜๋ฏ€๋กœ๋ฌธ์ž์—ด์€ํ”„๋กœ๊ทธ๋žจ์—์„œ์ค‘์š”ํ•œ์œ„์น˜๋ฅผ์ฐจ์ง€ํ•˜๊ณ ์žˆ๋‹ค.

More information

<4D F736F F F696E74202D D20B9AEC0DABFAD2C20BDBAC6AEB8B2B0FA20C6C4C0CF20C0D4C3E2B7C2>

<4D F736F F F696E74202D D20B9AEC0DABFAD2C20BDBAC6AEB8B2B0FA20C6C4C0CF20C0D4C3E2B7C2> 2015-1 5. ๋ฌธ์ž์—ด (string), ํŒŒ์ผ์ž…์ถœ๋ ฅ March 9, 2015 Advanced Networking Technology Lab. (YU-ANTL) Dept. of Information & Comm. Eng, College of Engineering, Yeungnam University, KOREA (Tel : +82-53-810-2497; Fax

More information

Microsoft PowerPoint - chap-12.pptx

Microsoft PowerPoint - chap-12.pptx ์‰ฝ๊ฒŒํ’€์–ด์“ด C ์–ธ์–ด Express ์ œ 12 ์žฅ๋ฌธ์ž์™€๋ฌธ์ž์—ด ์ปดํ“จํ„ฐํ”„๋กœ๊ทธ๋ž˜๋ฐ๊ธฐ์ดˆ ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ์ธ๊ฐ„์€๋ฌธ์ž๋ฅผ์‚ฌ์šฉํ•˜์—ฌ์ •๋ณด๋ฅผํ‘œํ˜„ํ•˜๋ฏ€๋กœ๋ฌธ์ž์—ด์€ํ”„๋กœ๊ทธ๋žจ์—์„œ์ค‘์š”ํ•œ์œ„์น˜๋ฅผ์ฐจ์ง€ํ•˜๊ณ ์žˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œ๋Š” C ์—์„œ์˜๋ฌธ์ž์—ด์ฒ˜๋ฆฌ๋ฐฉ๋ฒ•์—๋Œ€ํ•˜์—ฌ์ž์„ธํžˆ์‚ดํŽด๋ณผ๊ฒƒ์ด๋‹ค. ์ปดํ“จํ„ฐํ”„๋กœ๊ทธ๋ž˜๋ฐ๊ธฐ์ดˆ 2

More information

Microsoft PowerPoint - Chapter_07.pptx

Microsoft PowerPoint - Chapter_07.pptx ํ”„๋กœ๊ทธ๋ž˜๋ฐ 1 1 Chapter 7. Arrays May, 2016 Dept. of software Dankook University http://embedded.dankook.ac.kr/~baeksj ์ด์žฅ์˜๊ฐ•์˜๋ชฉํ‘œ 2 ๋ฐฐ์—ด์˜์ •์˜๋ฅผ์ดํ•ดํ•œ๋‹ค. ๋ฐฐ์—ด์˜์„ ์–ธ๋ฐฉ๋ฒ•์„์ดํ•ดํ•œ๋‹ค. ๊ฐ๋ฐฐ์—ด์›์†Œ๋ฅผ์ ‘๊ทผํ•˜๋Š”๋ฐฉ๋ฒ•์„์ดํ•ดํ•œ๋‹ค. ๋ฌธ์ž์—ด์˜ํŠน์ง•์„์ดํ•ดํ•œ๋‹ค. ๋ฌธ์ž์—ด๊ด€๋ จ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜์‚ฌ์šฉ๋ฐฉ๋ฒ•์„์ดํ•ดํ•œ๋‹ค.

More information

106 107, ( ),, ( ), 3, int kor[5]; int eng[5]; int Microsoft Windows 4 (ANSI C2 ) int kor[5] 20 # define #define SIZE 20 int a[10]; char c[10]; float

106 107, ( ),, ( ), 3, int kor[5]; int eng[5]; int Microsoft Windows 4 (ANSI C2 ) int kor[5] 20 # define #define SIZE 20 int a[10]; char c[10]; float Part 2 31 32 33 106 107, ( ),, ( ), 3, int kor[5]; int eng[5]; int Microsoft Windows 4 (ANSI C2 ) int kor[5] 20 # define #define SIZE 20 int a[10]; char c[10]; float f[size]; /* 10 /* c 10 /* f 20 3 1

More information

<4D F736F F F696E74202D D20B9AEC0DABFAD2C20BDBAC6AEB8B2B0FA20C6C4C0CF20C0D4C3E2B7C2>

<4D F736F F F696E74202D D20B9AEC0DABFAD2C20BDBAC6AEB8B2B0FA20C6C4C0CF20C0D4C3E2B7C2> ๋ฌธ์ž์—ด์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํ•จ์ˆ˜ ์„ค๋ช… strlen(s) ๋ฌธ์ž์—ด s์˜๊ธธ์ด๋ฅผ๊ตฌํ•œ๋‹ค. strcpy(s1, s2) s2๋ฅผ s1์—๋ณต์‚ฌํ•œ๋‹ค. strcat(s1, s2) s2๋ฅผ s1์˜๋์—๋ถ™์—ฌ๋„ฃ๋Š”๋‹ค. strcmp(s1, s2) s1๊ณผ s2๋ฅผ๋น„๊ตํ•œ๋‹ค. strncpy(s1, s2, n) s2์˜์ตœ๋Œ€n๊ฐœ์˜๋ฌธ์ž๋ฅผ s1์—๋ณต์‚ฌํ•œ๋‹ค. strncat(s1, s2, n) s2์˜์ตœ๋Œ€n๊ฐœ์˜๋ฌธ์ž๋ฅผ s1์˜๋์—๋ถ™์—ฌ๋„ฃ๋Š”๋‹ค.

More information

02์žฅ.๋ฐฐ์—ด๊ณผ ํด๋ž˜์Šค

02์žฅ.๋ฐฐ์—ด๊ณผ ํด๋ž˜์Šค ---------------- DATA STRUCTURES USING C ---------------- CHAPTER ๋ฐฐ์—ด๊ณผ๊ตฌ์กฐ์ฒด 1/20 ๋งŽ์€์ž๋ฃŒ์˜์ฒ˜๋ฆฌ? ๋ฐฐ์—ด (array), ๊ตฌ์กฐ์ฒด (struct) ์„ฑ์ ์ฒ˜๋ฆฌํ”„๋กœ๊ทธ๋žจ์—์„œ 45 ๋ช…์˜์„ฑ์ ์„์ €์žฅํ•˜๋Š”๋ฐฉ๋ฒ• ์ฃผ์†Œ๋กํ”„๋กœ๊ทธ๋žจ์—์„œ์นœ๊ตฌ๋“ค์˜๋‹ค์–‘ํ•œ์ •๋ณด ( ์ด๋ฆ„, ์ „ํ™”๋ฒˆํ˜ธ, ์ฃผ์†Œ, ์ด๋ฉ”์ผ๋“ฑ ) ๋ฅผํ†ตํ•ฉํ•˜์—ฌ์ €์žฅํ•˜๋Š”๋ฐฉ๋ฒ• ํ™๊ธธ๋™ ์ด๋ฆ„ :

More information

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ์ „์‚ฐ SMP 8 ์ฃผ์ฐจ 2015. 11. 21 ๊น€๋ฒ”์ˆ˜ bskim45@gmail.com Special thanks to ๋ฐ•๊ธฐ์„ (kisuk0521@gmail.com) ์ง€๋‚œ๋‚ด์šฉ๋ณต์Šต Dynamic Memory Allocation ์™œ์“ฐ๋‚˜์š”? ๋ฐฐ์—ด์˜ํฌ๊ธฐ๋ฅผ์ž…๋ ฅ๋ฐ›์•„๊ทธํฌ๊ธฐ๋งŒํผ์˜๋ฐฐ์—ด์„๋งŒ๋“ค๊ณ ์‹ถ์„๋•Œ int main(void) { int size; scanf( %d, &size);

More information

< E20C6DFBFFEBEEE20C0DBBCBAC0BB20C0A7C7D12043BEF0BEEE20492E707074>

< E20C6DFBFFEBEEE20C0DBBCBAC0BB20C0A7C7D12043BEF0BEEE20492E707074> Chap #2 ํŽŒ์›จ์–ด์ž‘์„ฑ์„์œ„ํ•œ C ์–ธ์–ด I http://www.smartdisplay.co.kr ๊ฐ•์˜๊ณ„ํš Chap1. ๊ฐ•์˜๊ณ„ํš๋ฐ๋””์ง€ํ„ธ๋…ผ๋ฆฌ์ด๋ก  Chap2. ํŽŒ์›จ์–ด์ž‘์„ฑ์„์œ„ํ•œ C ์–ธ์–ด I Chap3. ํŽŒ์›จ์–ด์ž‘์„ฑ์„์œ„ํ•œ C ์–ธ์–ด II Chap4. AT89S52 ๋ฉ”๋ชจ๋ฆฌ๊ตฌ์กฐ Chap5. SD-52 ๋ณด๋“œ๊ตฌ์„ฑ๊ณผ์ฝ”๋“œ๋ฉ”๋ชจ๋ฆฌํ”„๋กœ๊ทธ๋ž˜๋ฐ๋ฐฉ๋ฒ• Chap6. ์–ด๋“œ๋ ˆ์Šค๋””์ฝ”๋”ฉ ( ๋งคํ•‘ ) ๊ณผ์–ด์…ˆ๋ธ”๋ฆฌ์–ด์ฝ”๋”ฉ๋ฐฉ๋ฒ•

More information

http://cafedaumnet/pway Chapter 1 Chapter 2 21 printf("this is my first program\n"); printf("\n"); printf("-------------------------\n"); printf("this is my second program\n"); printf("-------------------------\n");

More information

์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋™์ ๋ฉ”๋ชจ๋ฆฌ๋ž€? malloc() ์™€ calloc() ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ ํŒŒ์ผ์„์ด์šฉํ•˜๋ฉด๋ณด๋‹ค๋งŽ์€๋ฐ์ดํ„ฐ๋ฅผ์œ ์šฉํ•˜๊ณ ์ง€์†์ ์œผ๋กœ์‚ฌ์šฉ๋ฐ๊ด€๋ฆฌํ• ์ˆ˜์žˆ์Šต๋‹ˆ๋‹ค. 2

์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋™์ ๋ฉ”๋ชจ๋ฆฌ๋ž€? malloc() ์™€ calloc() ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ ํŒŒ์ผ์„์ด์šฉํ•˜๋ฉด๋ณด๋‹ค๋งŽ์€๋ฐ์ดํ„ฐ๋ฅผ์œ ์šฉํ•˜๊ณ ์ง€์†์ ์œผ๋กœ์‚ฌ์šฉ๋ฐ๊ด€๋ฆฌํ• ์ˆ˜์žˆ์Šต๋‹ˆ๋‹ค. 2 ์ œ 17 ์žฅ๋™์ ๋ฉ”๋ชจ๋ฆฌ์™€์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ ์œ ์ค€๋ฒ” (JUNBEOM YOO) Ver. 2.0 jbyoo@konkuk.ac.kr http://dslab.konkuk.ac.kr ๋ณธ๊ฐ•์˜์ž๋ฃŒ๋Š”์ƒ๋Šฅ์ถœํŒ์‚ฌ์˜ PPT ๊ฐ•์˜์ž๋ฃŒ ๋ฅผ๊ธฐ๋ฐ˜์œผ๋กœ์ œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋™์ ๋ฉ”๋ชจ๋ฆฌ๋ž€? malloc() ์™€ calloc() ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ ํŒŒ์ผ์„์ด์šฉํ•˜๋ฉด๋ณด๋‹ค๋งŽ์€๋ฐ์ดํ„ฐ๋ฅผ์œ ์šฉํ•˜๊ณ ์ง€์†์ ์œผ๋กœ์‚ฌ์šฉ๋ฐ๊ด€๋ฆฌํ• ์ˆ˜์žˆ์Šต๋‹ˆ๋‹ค.

More information

PA for SWE2007

PA for SWE2007 Programming Assignment #0: Making own "my_string.h" SWE2007: Software Experiment II (Fall 2016) Due: 21st Sep. (Wed), 11:59 PM 1. Introduction ์ด๋ฒˆ๊ณผ์ œ์—์„ , ์•ž์œผ๋กœ์žˆ์„๋‹ค๋ฅธ๊ณผ์ œ๋“ค์„์ˆ˜ํ–‰ํ•˜๊ธฐ์œ„ํ•œํ•„์š”ํ• ํ•จ์ˆ˜๋“ค์„๊ตฌํ˜„ํ•œ๋‹ค. ๊ทธ๋Œ€์ƒ์€, ๋ฌธ์ž์—ด์กฐ์ž‘ / ๊ฒ€์‚ฌ / ๋ณ€ํ™˜ํ•จ์ˆ˜๋“ค์„๋‹ด์€

More information

Microsoft PowerPoint - ch07 - ํฌ์ธํ„ฐ pm0415

Microsoft PowerPoint - ch07 - ํฌ์ธํ„ฐ pm0415 ํ•จ์ˆ˜์˜์ธ์ˆ˜ (argument) ์ „๋‹ฌ๋ฐฉ๋ฒ• C ์—์„œํ•จ์ˆ˜์˜์ธ์ˆ˜์ „๋‹ฌ๋ฐฉ๋ฒ• ๊ฐ’์—์˜ํ•œํ˜ธ์ถœ (call-by-value): ๊ธฐ๋ณธ์ ์ธ๋ฐฉ๋ฒ• ํฌ์ธํ„ฐ์—์˜ํ•œํ˜ธ์ถœ (call-by-pointer): ํฌ์ธํ„ฐ์ด์šฉ ์ฐธ์กฐ์—์˜ํ•œํ˜ธ์ถœ (call-by-reference): ์ฐธ์กฐ (reference) ์ด์šฉ 7-35 ๊ฐ’์—์˜ํ•œํ˜ธ์ถœ (call-by-value) ํ•จ์ˆ˜ํ˜ธ์ถœ์‹œ์—๋ณ€์ˆ˜์˜๊ฐ’์„ํ•จ์ˆ˜์—๋ณต์‚ฌ๋ณธ์œผ๋กœ์ „๋‹ฌ ๋ณต์‚ฌ๋ณธ์ด์ „๋‹ฌ๋˜๋ฉฐ,

More information

๋น„ํŠธ์™€๋ฐ”์ดํŠธ ๋น„ํŠธ์™€๋ฐ”์ดํŠธ ๋น„ํŠธ (Bit) : 2์ง„์ˆ˜๊ฐ’ํ•˜๋‚˜ (0 ๋˜๋Š” 1) ๋ฅผ์ €์žฅํ• ์ˆ˜์žˆ๋Š”์ตœ์†Œ๋ฉ”๋ชจ๋ฆฌ๊ณต๊ฐ„ 1๋น„ํŠธ 2๋น„ํŠธ 3๋น„ํŠธ... n๋น„ํŠธ 2^1 = 2๊ฐœ 2^2 = 4๊ฐœ 2^3 = 8๊ฐœ... 2^n ๊ฐœ 1 ๋ฐ”์ดํŠธ๋Š” 8 ๋น„ํŠธ 2 2

๋น„ํŠธ์™€๋ฐ”์ดํŠธ ๋น„ํŠธ์™€๋ฐ”์ดํŠธ ๋น„ํŠธ (Bit) : 2์ง„์ˆ˜๊ฐ’ํ•˜๋‚˜ (0 ๋˜๋Š” 1) ๋ฅผ์ €์žฅํ• ์ˆ˜์žˆ๋Š”์ตœ์†Œ๋ฉ”๋ชจ๋ฆฌ๊ณต๊ฐ„ 1๋น„ํŠธ 2๋น„ํŠธ 3๋น„ํŠธ... n๋น„ํŠธ 2^1 = 2๊ฐœ 2^2 = 4๊ฐœ 2^3 = 8๊ฐœ... 2^n ๊ฐœ 1 ๋ฐ”์ดํŠธ๋Š” 8 ๋น„ํŠธ 2 2 ๋น„ํŠธ์—ฐ์‚ฐ์ž 1 1 ๋น„ํŠธ์™€๋ฐ”์ดํŠธ ๋น„ํŠธ์™€๋ฐ”์ดํŠธ ๋น„ํŠธ (Bit) : 2์ง„์ˆ˜๊ฐ’ํ•˜๋‚˜ (0 ๋˜๋Š” 1) ๋ฅผ์ €์žฅํ• ์ˆ˜์žˆ๋Š”์ตœ์†Œ๋ฉ”๋ชจ๋ฆฌ๊ณต๊ฐ„ 1๋น„ํŠธ 2๋น„ํŠธ 3๋น„ํŠธ... n๋น„ํŠธ 2^1 = 2๊ฐœ 2^2 = 4๊ฐœ 2^3 = 8๊ฐœ... 2^n ๊ฐœ 1 ๋ฐ”์ดํŠธ๋Š” 8 ๋น„ํŠธ 2 2 ์ง„์ˆ˜๋ฒ•! 2, 10, 16, 8! 2 : 0~1 ( )! 10 : 0~9 ( )! 16 : 0~9, 9 a, b,

More information

Microsoft PowerPoint - ch07 - ํฌ์ธํ„ฐ pm0415

Microsoft PowerPoint - ch07 - ํฌ์ธํ„ฐ pm0415 2015-1 ํ”„๋กœ๊ทธ๋ž˜๋ฐ์–ธ์–ด 7. ํฌ์ธํ„ฐ (Pointer), ๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น 2015 ๋…„ 4 ์›” 4 ์ผ ๊ต์ˆ˜๊น€์˜ํƒ ์˜๋‚จ๋Œ€ํ•™๊ต๊ณต๊ณผ๋Œ€ํ•™์ •๋ณดํ†ต์‹ ๊ณตํ•™๊ณผ (Tel : +82-53-810-2497; Fax : +82-53-810-4742 http://antl.yu.ac.kr/; E-mail : ytkim@yu.ac.kr) Outline ํฌ์ธํ„ฐ (pointer) ๋ž€? ๊ฐ„์ ‘์ฐธ์กฐ์—ฐ์‚ฐ์ž

More information

Chapter_06

Chapter_06 ํ”„๋กœ๊ทธ๋ž˜๋ฐ 1 1 Chapter 6. Functions and Program Structure April, 2016 Dept. of software Dankook University http://embedded.dankook.ac.kr/~baeksj ์ด์žฅ์˜๊ฐ•์˜๋ชฉํ‘œ 2 ๋ฌธ์ž์˜์ž…๋ ฅ๋ฐฉ๋ฒ•์„์ดํ•ดํ•œ๋‹ค. ์ค‘์ฒฉ๋œ if๋ฌธ์„์ดํ•ดํ•œ๋‹ค. while ๋ฐ˜๋ณต๋ฌธ์˜์‚ฌ์šฉ๋ฒ•์„์ตํžŒ๋‹ค. do ๋ฐ˜๋ณต๋ฌธ์˜์‚ฌ์šฉ๋ฒ•์„์ตํžŒ๋‹ค.

More information

PA for SWE2007

PA for SWE2007 SWE2007: Software Experiment II (Fall 2014) Programming Assignment #0: Making own "string_sw.h" Due: 22nd Sep. (Mon), 11:59 PM 1. Introduction ์ด๋ฒˆ๊ณผ์ œ์—์„ , ์•ž์œผ๋กœ์žˆ์„๋‹ค๋ฅธ๊ณผ์ œ๋“ค์„์ˆ˜ํ–‰ํ•˜๊ธฐ์œ„ํ•œํ•„์š”ํ• ํ•จ์ˆ˜๋“ค์„๊ตฌํ˜„ํ•œ๋‹ค. ๊ทธ๋Œ€์ƒ์€, ๋ฌธ์ž์—ด์กฐ์ž‘ / ๊ฒ€์‚ฌ / ๋ณ€ํ™˜ํ•จ์ˆ˜๋“ค์„๋‹ด์€

More information

Microsoft PowerPoint - Chapter_09.pptx

Microsoft PowerPoint - Chapter_09.pptx ํ”„๋กœ๊ทธ๋ž˜๋ฐ 1 1 Chapter 9. Structures May, 2016 Dept. of software Dankook University http://embedded.dankook.ac.kr/~baeksj ๊ตฌ์กฐ์ฒด์˜๊ฐœ๋… (1/4) 2 (0,0) ๊ตฌ์กฐ์ฒด : ๋‹ค์–‘ํ•œ์ข…๋ฅ˜์˜๋ฐ์ดํ„ฐ๋กœ๊ตฌ์„ฑ๋œ์‚ฌ์šฉ์ž์ •์˜๋ฐ์ดํ„ฐํƒ€์ž… ๋ณต์žกํ•œ์ž๋ฃŒ๋ฅผ๋‹ค๋ฃจ๋Š”๊ฒƒ์„ํŽธํ•˜๊ฒŒํ•ด์คŒ ์˜ˆ #1: ์ •์ˆ˜๋กœ์ด๋ฃจ์–ด์ง„ x,

More information

ABC 6์žฅ

ABC 6์žฅ 6 ์žฅ๋ฐฐ์—ด, ํฌ์ธํ„ฐ, ๋ฌธ์ž์—ด 0 1 ์ฐจ์›๋ฐฐ์—ด ๋ฐฐ์—ด : ์ฒจ์ž๊ฐ€๋ถ™์€๋ณ€์ˆ˜๋ฅผ์‚ฌ์šฉํ•˜๊ณ ์—ฌ๋Ÿฌ๊ฐœ์˜๋™์งˆ์ ๊ฐ’์„ํ‘œํ˜„ํ• ์ˆ˜์žˆ๋Š”์ž๋ฃŒํ˜• ์˜ˆ ( ์„ฑ์ ์ฒ˜๋ฆฌ๋ฅผ์œ„ํ•œ๋ณ€์ˆ˜์„ ์–ธ ) int int grade0, grade1, grade2; grade[3]; 1 ์ฐจ์›๋ฐฐ์—ด์„ ์–ธ int a[size]; - lower bound = 0 - upper bound = size - 1 - size = upper

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 ํ”„๋ ˆ์  ํ…Œ์ด์…˜ ์ „์‚ฐ SMP 5 ์ฃผ์ฐจ 2015. 10. 27 ๊น€๋ฒ”์ˆ˜ bskim45@gmail.com ๋“ค์–ด๊ฐ€๊ธฐ์ „์— ์ค‘๊ฐ„๊ณ ์‚ฌ์–ด๋• ๋‚˜์š”? ์ ์ˆ˜๋Š”? Welcome to Array & Pointer = Hell! ์ง€๋‚œ๋‚ด์šฉ๋ณต์Šต ~ ์ค‘๊ฐ„๊ณ ์‚ฌ ์ž๋ฃŒํ˜•๊ณผํ˜•๋ณ€ํ™˜ ์—ฐ์‚ฐ์ž, ์šฐ์„ ์ˆœ์œ„, ๊ฒฐํ•ฉ์ˆœ์„œ ์‚ฐ์ˆ ์—ฐ์‚ฐ์ž : +,-, *, /, % ๋Œ€์ž…์—ฐ์‚ฐ์ž : =, +=, -=, *=, /=, %=,

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

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

Microsoft PowerPoint - chap06.ppt

Microsoft PowerPoint - chap06.ppt 2010-1 ํ•™๊ธฐํ”„๋กœ๊ทธ๋ž˜๋ฐ์ž…๋ฌธ (1) 6 ์žฅ๋ฐฐ์—ด, ํฌ์ธํ„ฐ, ๋ฌธ์ž์—ด ๋ฐ•์ข…ํ˜ Tel: 970-6702 Email: jhpark1@snut.ac.kr 0 ๋ชฉ์ฐจ 6.1 1์ฐจ์›๋ฐฐ์—ด 6.2 ํฌ์ธํ„ฐ 6.3 ์ฐธ์กฐ์—์˜ํ•œํ˜ธ์ถœ 6.4 ๋ฐฐ์—ด๊ณผํฌ์ธํ„ฐ์˜๊ด€๊ณ„ 6.5 ํฌ์ธํ„ฐ์—ฐ์‚ฐ๊ณผ์›์†Œํฌ๊ธฐ 6.6 ํ•จ์ˆ˜์ธ์ž๋กœ์„œ์˜๋ฐฐ์—ด 6.7 ์˜ˆ์ œ : ๋ฒ„๋ธ”์ •๋ ฌ 6.8 calloc() ๊ณผ malloc() ์„์ด์šฉํ•œ๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น

More information

6.1 Addresses and Pointers Recall memory concepts from Ch2 ch6_testbasicpointer.c int x1=1, x2=7; double distance; int *p; int q=8; p = &q; name addre

6.1 Addresses and Pointers Recall memory concepts from Ch2 ch6_testbasicpointer.c int x1=1, x2=7; double distance; int *p; int q=8; p = &q; name addre GEN1031 Computer Programming Chapter 6 Pointer ํฌ์ธํ„ฐ Kichun Lee Department of Industrial Engineering Hanyang Univesity 1 6.1 Addresses and Pointers Recall memory concepts from Ch2 ch6_testbasicpointer.c

More information

์ œ 14 ์žฅํฌ์ธํ„ฐํ™œ์šฉ ์œ ์ค€๋ฒ” (JUNBEOM YOO) Ver ๋ณธ๊ฐ•์˜์ž๋ฃŒ๋Š”์ƒ๋Šฅ์ถœํŒ์‚ฌ์˜ PPT ๊ฐ•์˜์ž๋ฃŒ ๋ฅผ๊ธฐ๋ฐ˜์œผ๋กœ์ œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ œ 14 ์žฅํฌ์ธํ„ฐํ™œ์šฉ ์œ ์ค€๋ฒ” (JUNBEOM YOO) Ver ๋ณธ๊ฐ•์˜์ž๋ฃŒ๋Š”์ƒ๋Šฅ์ถœํŒ์‚ฌ์˜ PPT ๊ฐ•์˜์ž๋ฃŒ ๋ฅผ๊ธฐ๋ฐ˜์œผ๋กœ์ œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ œ 14 ์žฅํฌ์ธํ„ฐํ™œ์šฉ ์œ ์ค€๋ฒ” (JUNBEOM YOO) Ver. 2.0 jbyoo@konkuk.ac.kr http://dslab.konkuk.ac.kr ๋ณธ๊ฐ•์˜์ž๋ฃŒ๋Š”์ƒ๋Šฅ์ถœํŒ์‚ฌ์˜ PPT ๊ฐ•์˜์ž๋ฃŒ ๋ฅผ๊ธฐ๋ฐ˜์œผ๋กœ์ œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ์ด์ค‘ํฌ์ธํ„ฐ๋ž€๋ฌด์—‡์ธ๊ฐ€? ํฌ์ธํ„ฐ๋ฐฐ์—ด ํ•จ์ˆ˜ํฌ์ธํ„ฐ ๋‹ค์ฐจ์›๋ฐฐ์—ด๊ณผํฌ์ธํ„ฐ void ํฌ์ธํ„ฐ ํฌ์ธํ„ฐ๋Š”๋‹ค์–‘ํ•œ์šฉ๋„๋กœ์œ ์šฉํ•˜๊ฒŒํ™œ์šฉ๋ ์ˆ˜์žˆ์Šต๋‹ˆ๋‹ค. 2 ์ด์ค‘ํฌ์ธํ„ฐ

More information

Microsoft PowerPoint - 7_๋ฐฐ์—ด_๋ฌธ์ž์—ด

Microsoft PowerPoint - 7_๋ฐฐ์—ด_๋ฌธ์ž์—ด * ์ด๋ฒˆ์ฃผ์ฃผ์ œ: ๋ฐฐ์—ด, ๋ฌธ์ž์—ด 1 * ์ง€๋‚œ์ฃผ๋‚ด์šฉ: ํ•จ์ˆ˜ 2 * ๋ฐฐ์—ด์˜ ๊ฐœ๋… (p86) - ๋ณต์ˆ˜์˜ ๋™์ผํ•œ ๋ฐ์ดํ„ฐ ํ˜•์˜ ๋ณ€์ˆ˜๋ฅผ ํ•˜๋‚˜๋กœ ๋ฌถ์€ ๊ฒƒ. - ๋Œ€๋Ÿ‰์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์ทจ๊ธ‰ํ•  ๋•Œ๋‚˜ ์—ฌ๋Ÿฌ ๋ฐ์ดํ„ฐ๋ฅผ ์ฐจ๋ก€๋กœ ์ž๋™์ ์œผ๋กœ ์ž…์ถœ๋ ฅํ•ด์•ผ ํ•  ๋•Œ ๋ฐฐ์—ด์„ ์‚ฌ์šฉ ํ•˜๋ฉด ํŽธ๋ฆฌ. - ๋ฐฐ์—ด๋„ ๋ณ€์ˆ˜์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ์„ ์–ธ์ด ํ•„์š”. - ๋ฐฐ์—ด์„ ์ดˆ๊ธฐํ™” ํ•  ๋•Œ๋Š” { }๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ’์„ ์—ด๊ฑฐ. - [ ]์•ˆ์˜

More information

YRRZBRRLMCEQ.hwp

YRRZBRRLMCEQ.hwp C์–ธ์–ด2 4์ฐจ์‹œ๊ฐ•์˜์ž๋ฃŒ ์ด๋Œ€์ข…( ํ•œ๊ฒฝ๋Œ€ํ•™๊ต) 1 ์ฐจ์‹œ. ์ž๋ฃŒํ˜•( ๋ฐ์ดํ„ฐ์œ ํ˜•) 1.1 ๋ฌธ์žํ˜•๋ฐ์ดํ„ฐํ˜•์‹ ( char ํ˜• ) 1.2 ์†Œ์ˆ˜์ ์ด์—†๋Š”์ •์ˆ˜ํ˜• ( int ํ˜• ) 1.3 ์†Œ์ˆ˜์ ์ด์žˆ๋Š”์‹ค์ˆ˜ํ˜• (float ํ˜•, double ํ˜• ) 2 ์ฐจ์‹œ. ์—ฐ์‚ฐ์ž 2.1 2.2 2.3 2.4 ์‚ฐ์ˆ ์—ฐ์‚ฐ์ž ์ฆ๊ฐ์—ฐ์‚ฐ์ž ๊ด€๊ณ„์—ฐ์‚ฐ์ž ๋…ผ๋ฆฌ์—ฐ์‚ฐ์ž 3 ์ฐจ์‹œ. ์ œ์–ด๋ฌธ ( ์กฐ๊ฑด๋ฌธ, ๋ฐ˜๋ณต๋ฌธ) 3.1

More information

Infinity(โˆž) Strategy

Infinity(โˆž) Strategy ๋ฐฐ์—ด (Array) ๋Œ€์šฉ๋Ÿ‰๋ฐ์ดํ„ฐ ๋Œ€์šฉ๋Ÿ‰๋ฐ์ดํ„ฐ๋ฅผ๋‹ค๋ฃจ๋Š”๊ธฐ๋ฒ• ๋ฐฐ์—ด (Array) ํฌ์ธํ„ฐ (Pointer) ๊ตฌ์กฐ์ฒด (Structure) ํŒŒ์ผ (File) ๋ณ€์ˆ˜ (Variable) ๋ณ€์ˆ˜๋ฐ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น ๋ณ€์ˆ˜์„ ์–ธ : int imsi; imsi 4 Bytes ๋ณ€์ˆ˜์„ ์–ธ : char imsi2; imsi2 1 Byte ๋ฐฐ์—ด (Array) ๋ฐฐ์—ด ๋™์ผํ•œ๋ฐ์ดํ„ฐํ˜•์„๊ฐ€์ง€๊ณ ์žˆ๋Š”๋ฐ์ดํ„ฐ๋“ค์„์ฒ˜๋ฆฌํ• ๋•Œ์‚ฌ์šฉ

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

Microsoft PowerPoint - Chapter14_17.pptx

Microsoft PowerPoint - Chapter14_17.pptx Computer Engineering g Programming g 2 - ์ œ 17 ์žฅ๋™์ ๋ฉ”๋ชจ๋ฆฌ์™€์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ - ์ œ 14 ์žฅํฌ์ธํ„ฐํ™œ์šฉ Lecturer: JUNBEOM YOO jbyoo@konkuk.ac.kr ๋ณธ๊ฐ•์˜์ž๋ฃŒ๋Š”์ƒ๋Šฅ์ถœํŒ์‚ฌ์˜ PPT ๊ฐ•์˜์ž๋ฃŒ ๋ฅผ๊ธฐ๋ฐ˜์œผ๋กœ์ œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋™์ ํ• ๋‹น๋ฉ”๋ชจ๋ฆฌ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ ์ด์ค‘ํฌ์ธํ„ฐ ํฌ์ธํ„ฐ๋ฐฐ์—ด ๋‹ค์ฐจ์›๋ฐฐ์—ด๊ณผํฌ์ธํ„ฐ main

More information

<4D F736F F F696E74202D20C1A63132B0AD20B5BFC0FB20B8DEB8F0B8AEC7D2B4E7>

<4D F736F F F696E74202D20C1A63132B0AD20B5BFC0FB20B8DEB8F0B8AEC7D2B4E7> ์ œ14์žฅ ๋™์  ๋ฉ”๋ชจ๋ฆฌ ํ• ๋‹น Dynamic Allocation void * malloc(sizeof(char)*256) void * calloc(sizeof(char), 256) void * realloc(void *, size_t); Self-Referece NODE struct selfref { int n; struct selfref *next; }; Linked

More information

Microsoft PowerPoint - Lesson14.pptx

Microsoft PowerPoint - Lesson14.pptx 2008 Spring Computer Engineering g Programming g 1 Lesson 14 - ์ œ 17 ์žฅ๋™์ ๋ฉ”๋ชจ๋ฆฌ์™€์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ - ์ œ14 ์žฅํฌ์ธํ„ฐํ™œ์šฉ Lecturer: JUNBEOM YOO jbyoo@konkuk.ac.kr ๋ณธ๊ฐ•์˜์ž๋ฃŒ๋Š”์ƒ๋Šฅ์ถœํŒ์‚ฌ์˜ PPT ๊ฐ•์˜์ž๋ฃŒ ๋ฅผ๊ธฐ๋ฐ˜์œผ๋กœ์ œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋™์ ํ• ๋‹น๋ฉ”๋ชจ๋ฆฌ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ ์ด์ค‘ํฌ์ธํ„ฐ

More information

Microsoft PowerPoint - Lesson14.pptx

Microsoft PowerPoint - Lesson14.pptx 2009 Spring Computer Engineering g Programming g 1 Lesson 14 - ์ œ 17 ์žฅ๋™์ ๋ฉ”๋ชจ๋ฆฌ์™€์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ - ์ œ14 ์žฅํฌ์ธํ„ฐํ™œ์šฉ Lecturer: JUNBEOM YOO jbyoo@konkuk.ac.kr ๋ณธ๊ฐ•์˜์ž๋ฃŒ๋Š”์ƒ๋Šฅ์ถœํŒ์‚ฌ์˜ PPT ๊ฐ•์˜์ž๋ฃŒ ๋ฅผ๊ธฐ๋ฐ˜์œผ๋กœ์ œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋™์ ํ• ๋‹น๋ฉ”๋ชจ๋ฆฌ ์—ฐ๊ฒฐ๋ฆฌ์ŠคํŠธ ์ด์ค‘ํฌ์ธํ„ฐ

More information

Microsoft PowerPoint - chap06-4 [ํ˜ธํ™˜ ๋ชจ๋“œ]

Microsoft PowerPoint - chap06-4 [ํ˜ธํ™˜ ๋ชจ๋“œ] 2011-1 ํ•™๊ธฐํ”„๋กœ๊ทธ๋ž˜๋ฐ์ž…๋ฌธ (1) chapter 06-4 ์ฐธ๊ณ ์ž๋ฃŒ ๋ฌธ์ž์—ด์˜์ฒ˜๋ฆฌ ๋ฐ•์ข…ํ˜ Tel: 970-6702 Email: jhpark1@seoultech.ac.kr h k ํ•œ๋น›๋ฏธ๋””์–ด ์ถœ์ฒ˜ : ๋‡Œ๋ฅผ์ž๊ทนํ•˜๋Š” Cํ”„๋กœ๊ทธ๋ž˜๋ฐ, ํ•œ๋น›๋ฏธ๋””์–ด -1- ehanbit.net ๋ฌธ์ž์—ด์˜์—ฐ์‚ฐ ๋ฌธ์ž์—ด์€๋ฐฐ์—ด์˜ํ˜•ํƒœ๋กœ๊ตฌํ˜„๋œ์‘์šฉ์ž๋ฃŒํ˜•์ด๋ฏ€๋กœ์—ฐ์‚ฐ์„์ž์œ ๋กญ๊ฒŒํ• ์ˆ˜์—†๋‹ค. ๋ฐฐ์—ด์—์ €์žฅ๋œ๋ฌธ์ž์—ด์˜๊ธธ์ด๋ฅผ๊ณ„์‚ฐํ•˜๋Š”์ž‘์—…๋„๊ฐ„๋‹จํ•˜์ง€์•Š๋‹ค.

More information

Microsoft PowerPoint - chap02-Cํ”„๋กœ๊ทธ๋žจ์‹œ์ž‘ํ•˜๊ธฐ.pptx

Microsoft PowerPoint - chap02-Cํ”„๋กœ๊ทธ๋žจ์‹œ์ž‘ํ•˜๊ธฐ.pptx #include int main(void) { int num; printf( Please enter an integer "); scanf("%d", &num); if ( num < 0 ) printf("is negative.\n"); printf("num = %d\n", num); return 0; } 1 ํ•™์Šต๋ชฉํ‘œ ์„ ์ž‘์„ฑํ•˜๋ฉด์„œ C ํ”„๋กœ๊ทธ๋žจ์˜

More information

C ์–ธ์–ด ํ”„๋กœ๊ทธ๋ž˜๋ฐŠ ๊ณผ์ œ ํ’€์ด

C ์–ธ์–ด ํ”„๋กœ๊ทธ๋ž˜๋ฐŠ ๊ณผ์ œ ํ’€์ด ๊ณผ์ œํ’€์ด (1) ํ™€์ˆ˜ / ์ง์ˆ˜ํŒ์ • (1) /* 20094123 ํ™๊ธธ๋™ 20100324 */ /* even_or_odd.c */ /* ์ •์ˆ˜๋ฅผ์ž…๋ ฅ๋ฐ›์•„ํ™€์ˆ˜์ธ์ง€์ง์ˆ˜์ธ์ง€ํŒ์ •ํ•˜๋Š”ํ”„๋กœ๊ทธ๋žจ */ int number; printf(" ์ •์ˆ˜๋ฅผ์ž…๋ ฅํ•˜์‹œ์˜ค => "); scanf("%d", &number); ํ™•์ธ ์ฃผ์„๋ฌธ ๊ฐ€ํ•„์š”ํ•œ์ด์œ  printf ์™€ scanf ์Œ

More information

11์žฅ ํฌ์ธํ„ฐ

11์žฅ ํฌ์ธํ„ฐ ๋ˆ„๊ตฌ๋‚˜์ฆ๊ธฐ๋Š” C ์–ธ์–ด์ฝ˜์„œํŠธ ์ œ 10 ์žฅ๋ฌธ์ž์™€๋ฌธ์ž์—ด ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ๋ฌธ์ž์™€๋ฌธ์ž์—ด์ฒ˜๋ฆฌ๋ฐฉ๋ฒ•์—๋Œ€ํ•˜์—ฌ์‚ดํŽด๋ณผ๊ฒƒ์ด๋‹ค. ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ์ปดํ“จํ„ฐ์—์„œ๋Š”๊ฐ๊ฐ์˜๋ฌธ์ž์—์ˆซ์ž์ฝ”๋“œ๋ฅผ๋ถ™์—ฌ์„œํ‘œ์‹œํ•œ๋‹ค. ์•„์Šคํ‚ค์ฝ”๋“œ (ASCII code): ํ‘œ์ค€์ ์ธ 8๋น„ํŠธ๋ฌธ์ž์ฝ”๋“œ 0์—์„œ 127๊นŒ์ง€์˜์ˆซ์ž๋ฅผ์ด์šฉํ•˜์—ฌ๋ฌธ์žํ‘œํ˜„

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

์ค‘๊ฐ„๊ณ ์‚ฌ

์ค‘๊ฐ„๊ณ ์‚ฌ ์ค‘๊ฐ„๊ณ ์‚ฌ ์˜ˆ์ œ 1 ์‚ฌ์šฉ์ž๋กœ๋ถ€ํ„ฐ๋ฐ›์€๋‘๊ฐœ์˜์ˆซ์ž x, y ์ค‘์—์„œํฐ์ˆ˜๋ฅผ์ฐพ๋Š”์•Œ๊ณ ๋ฆฌ์ฆ˜์„์˜์‚ฌ์ฝ”๋“œ๋กœ์ž‘์„ฑํ•˜์‹œ์˜ค. Step 1: Input x, y Step 2: if (x > y) then MAX

More information

11์žฅ ํฌ์ธํ„ฐ

11์žฅ ํฌ์ธํ„ฐ ๋ˆ„๊ตฌ๋‚˜์ฆ๊ธฐ๋Š” C ์–ธ์–ด์ฝ˜์„œํŠธ ์ œ 10 ์žฅ๋ฌธ์ž์™€๋ฌธ์ž์—ด ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ๋ฌธ์ž์™€๋ฌธ์ž์—ด์ฒ˜๋ฆฌ๋ฐฉ๋ฒ•์—๋Œ€ํ•˜์—ฌ์‚ดํŽด๋ณผ๊ฒƒ์ด๋‹ค. ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ์ปดํ“จํ„ฐ์—์„œ๋Š”๊ฐ๊ฐ์˜๋ฌธ์ž์—์ˆซ์ž์ฝ”๋“œ๋ฅผ๋ถ™์—ฌ์„œํ‘œ์‹œํ•œ๋‹ค. ์•„์Šคํ‚ค์ฝ”๋“œ (ASCII code): ํ‘œ์ค€์ ์ธ 8๋น„ํŠธ๋ฌธ์ž์ฝ”๋“œ 0์—์„œ 127๊นŒ์ง€์˜์ˆซ์ž๋ฅผ์ด์šฉํ•˜์—ฌ๋ฌธ์žํ‘œํ˜„

More information

<4D F736F F F696E74202D20C1A63134C0E520C6F7C0CEC5CD5FC8B0BFEB>

<4D F736F F F696E74202D20C1A63134C0E520C6F7C0CEC5CD5FC8B0BFEB> ์‰ฝ๊ฒŒํ’€์–ด์“ด C ์–ธ์–ด Express ์ œ 14 ์žฅํฌ์ธํ„ฐํ™œ์šฉ ์ด์ค‘ํฌ์ธํ„ฐ ์ด์ค‘ํฌ์ธํ„ฐ (double pointer) : ํฌ์ธํ„ฐ๋ฅผ๊ฐ€๋ฆฌํ‚ค๋Š”ํฌ์ธํ„ฐ int i = 10; int *p = &i; int **q = &p; // i ๋Š” int ํ˜•๋ณ€์ˆ˜ // p ๋Š” i ๋ฅผ๊ฐ€๋ฆฌํ‚ค๋Š”ํฌ์ธํ„ฐ // q ๋Š”ํฌ์ธํ„ฐ p ๋ฅผ๊ฐ€๋ฆฌํ‚ค๋Š”์ด์ค‘ํฌ์ธํ„ฐ ์ด์ค‘ํฌ์ธํ„ฐ ์ด์ค‘ํฌ์ธํ„ฐ์˜ํ•ด์„ ์ด์ค‘ํฌ์ธํ„ฐ // ์ด์ค‘ํฌ์ธํ„ฐํ”„๋กœ๊ทธ๋žจ

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

Microsoft PowerPoint - Cํ”„๋กœ๊ทธ๋ž˜๋ฐ-chap15.ppt [ํ˜ธํ™˜ ๋ชจ๋“œ]

Microsoft PowerPoint - Cํ”„๋กœ๊ทธ๋ž˜๋ฐ-chap15.ppt [ํ˜ธํ™˜ ๋ชจ๋“œ] Chapter 15 ๋ฌธ์ž์—ด 2009 ํ•œ๊ตญํ•ญ๊ณต๋Œ€ํ•™๊ตํ•ญ๊ณต์šฐ์ฃผ๊ธฐ๊ณ„๊ณตํ•™๋ถ€ (http://mercury.kau.ac.kr/sjkwon) 1 ๋ฌธ์ž์˜์ง‘ํ•ฉ์ฒด ๋ฌธ์ž์—ด์˜์ •์˜ ์ผ๋ จ์˜๋ฌธ์ž C ์–ธ์–ด์—์„œ๋ฌธ์ž์—ด์•ž๋’ค์—์ธ์šฉ๋ถ€ํ˜ธ ๋ฅผ์ด์šฉ ๋ฌธ์ž์™€๋ฌธ์ž์—ด๊ณผ์˜์ฐจ์ด ๋ฌธ์ž์—ด์˜์ €์žฅ (1) ๋ฐฐ์—ด์„์ด์šฉํ•˜๋Š”๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ƒ์ˆ˜ c c language ๋ฅผ์ €์žฅํ•˜๋Š”๋ฌธ์ž์—ด๋ฐฐ์—ด ํ•ญ์ƒ๋ฌธ์ž์—ด๋งˆ์ง€๋ง‰์—๋Š” NULL๋ฌธ์ž๋ฅผ๋„ฃ์–ด์•ผํ•จ (2)

More information

C ํ”„๋กœ๊ทธ๋ž˜๋ฐŠ ๊ฐœ์š”

C ํ”„๋กœ๊ทธ๋ž˜๋ฐŠ ๊ฐœ์š” ๊ตฌ์กฐ์ฒด 2009 ๋…„ 5 ์›” 19 ์ผ ๊น€๊ฒฝ์ค‘ ๊ฐ•์˜๊ณ„ํš์ˆ˜์ • ์ผ์ž๊ณ„ํš Quiz ์‹ค์Šต๋ณด๊ฐ• 5 ์›” 19 ์ผ ( ํ™” ) ๊ตฌ์กฐ์ฒด Quiz ( ํ•จ์ˆ˜ ) 5 ์›” 21 ์ผ ( ๋ชฉ ) ๊ตฌ์กฐ์ฒด์ €๋… 6 ์‹œ 5 ์›” 26 ์ผ ( ํ™” ) ํฌ์ธํ„ฐ 5 ์›” 28 ์ผ ( ๋ชฉ ) ํŠน๊ฐ• (12:00-1:30) 6 ์›” 2 ์ผ ( ํ™” ) ํฌ์ธํ„ฐ Quiz ( ๊ตฌ์กฐ์ฒด ) ์ €๋… 6 ์‹œ 6 ์›” 4 ์ผ ( ๋ชฉ

More information

Microsoft PowerPoint - Chapter_05.pptx

Microsoft PowerPoint - Chapter_05.pptx ํ”„๋กœ๊ทธ๋ž˜๋ฐ 1 1 Chapter 5. Functions and Control Flow April, 2016 Dept. of software Dankook University http://embedded.dankook.ac.kr/~baeksj ์ด์žฅ์˜๊ฐ•์˜๋ชฉํ‘œ 2 printf ํ•จ์ˆ˜์™€ scanf ํ•จ์ˆ˜์˜์ดํ•ดํ•จ์ˆ˜์˜์ดํ•ด๋Œ€ํ‘œ์ ์ œ์–ด๋ฌธ์ธ if์™€ for ๋ฌธ์„์ดํ•ดํ•œ๋‹ค. ์ฝ”๋“œ๋ธ”๋ก

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

์ œ1์žฅ Unix๋ž€ ๋ฌด์—‡์ธ๊ฐ€?

์ œ1์žฅ  Unix๋ž€ ๋ฌด์—‡์ธ๊ฐ€? 1 12 ์žฅํŒŒ์ดํ”„ 2 12.1 ํŒŒ์ดํ”„ ํŒŒ์ดํ”„์›๋ฆฌ $ who sort ํŒŒ์ดํ”„ 3 ๋ฌผ์„๋ณด๋‚ด๋Š”์ˆ˜๋„ํŒŒ์ดํ”„์™€๋น„์Šท ํ•œํ”„๋กœ์„ธ์Šค๋Š”์“ฐ๊ธฐ์šฉํŒŒ์ผ๋””์Šคํฌ๋ฆฝํ„ฐ๋ฅผ์ด์šฉํ•˜์—ฌํŒŒ์ดํ”„์—๋ฐ์ดํ„ฐ๋ฅผ๋ณด๋‚ด๊ณ  ( ์“ฐ๊ณ  ) ๋‹ค๋ฅธํ”„๋กœ์„ธ์Šค๋Š”์ฝ๊ธฐ์šฉํŒŒ์ผ๋””์Šคํฌ๋ฆฝํ„ฐ๋ฅผ์ด์šฉํ•˜์—ฌ๊ทธํŒŒ์ดํ”„์—์„œ๋ฐ์ดํ„ฐ๋ฅผ๋ฐ›๋Š”๋‹ค ( ์ฝ๋Š”๋‹ค ). ํ•œ๋ฐฉํ–ฅ (one way) ํ†ต์‹  ํŒŒ์ดํ”„์ƒ์„ฑ ํŒŒ์ดํ”„๋Š”๋‘๊ฐœ์˜ํŒŒ์ผ๋””์Šคํฌ๋ฆฝํ„ฐ๋ฅผ๊ฐ–๋Š”๋‹ค. ํ•˜๋‚˜๋Š”์“ฐ๊ธฐ์šฉ์ด๊ณ ๋‹ค๋ฅธํ•˜๋‚˜๋Š”์ฝ๊ธฐ์šฉ์ด๋‹ค.

More information

๊ธˆ์˜ค๊ณต๋Œ€ ์ปดํ“จํ„ฐ๊ณตํ•™์ „๊ณต ๊ฐ•์˜์ž๋ฃŒ

๊ธˆ์˜ค๊ณต๋Œ€ ์ปดํ“จํ„ฐ๊ณตํ•™์ „๊ณต ๊ฐ•์˜์ž๋ฃŒ C ํ”„๋กœ๊ทธ๋ž˜๋ฐํ”„๋กœ์ ํŠธ Chap 14. ํฌ์ธํ„ฐ์™€ํ•จ์ˆ˜์—๋Œ€ํ•œ์ดํ•ด 2013.10.09. ์˜ค๋ณ‘์šฐ ์ปดํ“จํ„ฐ๊ณตํ•™๊ณผ 14-1 ํ•จ์ˆ˜์˜์ธ์ž๋กœ๋ฐฐ์—ด์ „๋‹ฌ ๊ธฐ๋ณธ์ ์ธ์ธ์ž์˜์ „๋‹ฌ๋ฐฉ์‹ ๊ฐ’์˜๋ณต์‚ฌ์—์˜ํ•œ์ „๋‹ฌ val 10 a 10 11 Department of Computer Engineering 2 14-1 ํ•จ์ˆ˜์˜์ธ์ž๋กœ๋ฐฐ์—ด์ „๋‹ฌ ๋ฐฐ์—ด์˜ํ•จ์ˆ˜์ธ์ž์ „๋‹ฌ๋ฐฉ์‹ ๋ฐฐ์—ด์ด๋ฆ„ ( ๋ฐฐ์—ด์ฃผ์†Œ, ํฌ์ธํ„ฐ ) ์—์˜ํ•œ์ „๋‹ฌ #include

More information

PowerPoint Presentation

PowerPoint Presentation ์ปดํ“จํ„ฐํ”„๋กœ๊ทธ๋ž˜๋ฐ Computer Programming 11 ๋ฌธ์ž์™€๋ฌธ์ž์—ด ๋ชฉ์ฐจ 1. ๋ฌธ์ž์™€๋ฌธ์ž์—ด 2. ๋ฌธ์ž์—ด๊ด€๋ จํ•จ์ˆ˜ 3. ์—ฌ๋Ÿฌ๋ฌธ์ž์—ด์ฒ˜๋ฆฌ ์ปดํ“จํ„ฐํ”„๋กœ๊ทธ๋ž˜๋ฐ (Computer Programming) - 11 ๋ฌธ์ž์™€๋ฌธ์ž์—ด 3 1. ๋ฌธ์ž์™€๋ฌธ์ž์—ด ๋ฌธ์ž ์˜์–ด์˜์•ŒํŒŒ๋ฒณ์ด๋‚˜ํ•œ๊ธ€์˜ํ•œ๊ธ€์ž๋ฅผ์ž‘์€๋”ฐ์˜ดํ‘œ๋กœ๋‘˜๋Ÿฌ์‹ธ์„œ A ์™€๊ฐ™์ดํ‘œ๊ธฐ C ์–ธ์–ด์—์„œ์ €์žฅ๊ณต๊ฐ„ํฌ๊ธฐ 1 ๋ฐ”์ดํŠธ์ธ์ž๋ฃŒํ˜• char ๋กœ์ง€์› ์ž‘์€๋”ฐ์˜ดํ‘œ์—์˜ํ•ดํ‘œ๊ธฐ๋œ๋ฌธ์ž๋ฅผ๋ฌธ์ž์ƒ์ˆ˜

More information

ABC 6์žฅ

ABC 6์žฅ 8 ์žฅํฌ์ธํ„ฐ ๊น€๋ช…ํ˜ธ ๋‚ด์šฉ ํฌ์ธํ„ฐ์†Œ๊ฐœ ์ฃผ์†Œ์—ฐ์‚ฐ์ž & ํฌ์ธํ„ฐ๋ณ€์ˆ˜ ์—ญ์ฐธ์กฐ์—ฐ์‚ฐ์ž * void ํฌ์ธํ„ฐ ํฌ์ธํ„ฐ์—ฐ์‚ฐ ํ•จ์ˆ˜์™€ํฌ์ธํ„ฐ ๋ฉ”๋ชจ๋ฆฌ์‚ฌ์ƒํ•จ์ˆ˜ ๋™์ ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น ํฌ์ธํ„ฐ๋ฐฐ์—ด const, restrict ํ•จ์ˆ˜ํฌ์ธํ„ฐ 1 ํฌ์ธํ„ฐ ์ง€๊ธˆ๊นŒ์ง€ํ• ๋‹น๋ฐ›์€๋ฉ”๋ชจ๋ฆฌ๊ณต๊ฐ„์€๋ณ€์ˆ˜์ด๋ฆ„์œผ๋กœ์ ‘๊ทผํ–ˆ์—ˆ์Œ ์˜ˆ int a, b, c; a = b + c; // a, b, c ๋ฅผ์œ„ํ•œ๋ฉ”๋ชจ๋ฆฌํ• ๋‹น // a, b, c ์ด๋ฆ„์œผ๋กœ๋ฉ”๋ชจ๋ฆฌ์ ‘๊ทผ

More information

PA0 for SSE2033

PA0 for SSE2033 SSE2033: System Software Experiment II (Spring 2016) Programming Assignment #0: Making own "my_string.h" Due: 21st Mar. (Mon), 11:59 PM 1. Introduction ์ด๋ฒˆ๊ณผ์ œ์—์„ , ์•ž์œผ๋กœ์žˆ์„๋‹ค๋ฅธ๊ณผ์ œ๋“ค์„์ˆ˜ํ–‰ํ•˜๊ธฐ์œ„ํ•œํ•„์š”ํ• ํ•จ์ˆ˜๋“ค์„๊ตฌํ˜„ํ•œ๋‹ค. ๊ทธ๋Œ€์ƒ์€, ๋ฌธ์ž์—ด์กฐ์ž‘

More information

ch15

ch15 ์‰ฝ๊ฒŒํ’€์–ด์“ด C ์–ธ์–ด Express ์ œ 14 ์žฅํฌ์ธํ„ฐํ™œ์šฉ C Express ์ด์ค‘ํฌ์ธํ„ฐ ์ด์ค‘ํฌ์ธํ„ฐ (double pointer) : ํฌ์ธํ„ฐ๋ฅผ๊ฐ€๋ฆฌํ‚ค๋Š”ํฌ์ธํ„ฐ int i = 10; int *p = &i; int **q = &p; // i ๋Š” int ํ˜•๋ณ€์ˆ˜ // p ๋Š” i ๋ฅผ๊ฐ€๋ฆฌํ‚ค๋Š”ํฌ์ธํ„ฐ // q ๋Š”ํฌ์ธํ„ฐ p ๋ฅผ๊ฐ€๋ฆฌํ‚ค๋Š”์ด์ค‘ํฌ์ธํ„ฐ ์ด์ค‘ํฌ์ธํ„ฐ ์ด์ค‘ํฌ์ธํ„ฐ์˜ํ•ด์„ ์ด์ค‘ํฌ์ธํ„ฐ //

More information

๋ณธ ๊ฐ•์˜์— ๋“ค์–ด๊ฐ€๊ธฐ ์ „

๋ณธ ๊ฐ•์˜์— ๋“ค์–ด๊ฐ€๊ธฐ ์ „ C ๊ธฐ์ดˆํŠน๊ฐ• ์ข…ํ•ฉ๊ณผ์ œ ๊ณผ์ œ๋‚ด์šฉ ๊ตฌ์กฐ์ฒด๋ฅผ์ด์šฉํ•˜์—ฌ๊ต๊ณผ๋ชฉ์ด๋ฆ„๊ณผ์ฝ”๋“œ๋ฅผํŒŒ์ผ๋กœ๋ถ€ํ„ฐ์ž…๋ ฅ๋ฐ›์•„๊ด€๋ฆฌ ๊ตฌ์กฐ์ฒด๋ฅผ์ด์šฉํ•˜์—ฌํ•™์ƒ๋“ค์˜์ด๋ฆ„, ํ•™๋ฒˆ๊ณผ์ด์ˆ˜ํ•œ๊ต๊ณผ๋ชฉ์˜์ฝ”๋“œ์™€์ ์ˆ˜๋ฅผํŒŒ์ผ๋กœ๋ถ€ํ„ฐ์ž…๋ ฅ ํ•™์ƒ๊ฐœ์ธ๋ณ„์ด์ , ํ‰๊ท ๊ณ„์‚ฐ ๊ต๊ณผ๋ชฉ๋ณ„์ด์ˆ˜ํ•™์ƒ์ˆ˜, ์ด์ ๋ฐํ‰๊ท ์„๊ณ„์‚ฐ ๊ฒฐ๊ณผ๋ฅผํŒŒ์ผ์—์ €์žฅํ•˜๋Š”ํ”„๋กœ๊ทธ๋žจ์„์ž‘์„ฑ 2 Makefile OBJS = score_main.o score_input.o score_calc.o score_print.o

More information

ํ”„๋กœ๊ทธ๋žจ์„ ํ•™๊ต ๋“ฑ์ง€์—์„œ ์กฐ๊ธˆ์ด๋ผ๋„ ๋ฐฐ์šด ์‚ฌ๋žŒ๋“ค์„ ์œ„ํ•œ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋…ธํŠธ ์ž…๋‹ˆ๋‹ค. ์ € ์—ญ์‹œ ๊ทธ ์‚ฌ๋žŒ๋“ค ์ค‘ ํ•˜๋‚˜ ์ž…๋‹ˆ๋‹ค. ์ค‘๊ณ ๋“ฑํ•™๊ต ์‹œ์ ˆ ํ•™๊ต ๋„์„œ๊ด€, ์ƒˆ๋กœ ์ƒ๊ธด ์‹œ๋ฆฝ ๋„์„œ๊ด€ ๋“ฑ์„ ๋‹ค๋‹ˆ๋ฉฐ ์ฑ…์„ ๋ณด ๊ณ  ์ •๋ฆฌํ•˜๋ฉฐ ์–ด๋Š์ •๋„ ๋…ํ•™์œผ๋ฅด ๊ณต๋ถ€ํ•˜๊ธด ํ–ˆ์ง€๋งŒ, ์ž์ฃผ ์•ˆํ•˜๋‹ค ๋ณด๋ฉด ๊ธˆ๋ฐฉ ์žŠ์–ด

ํ”„๋กœ๊ทธ๋žจ์„ ํ•™๊ต ๋“ฑ์ง€์—์„œ ์กฐ๊ธˆ์ด๋ผ๋„ ๋ฐฐ์šด ์‚ฌ๋žŒ๋“ค์„ ์œ„ํ•œ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋…ธํŠธ ์ž…๋‹ˆ๋‹ค. ์ € ์—ญ์‹œ ๊ทธ ์‚ฌ๋žŒ๋“ค ์ค‘ ํ•˜๋‚˜ ์ž…๋‹ˆ๋‹ค. ์ค‘๊ณ ๋“ฑํ•™๊ต ์‹œ์ ˆ ํ•™๊ต ๋„์„œ๊ด€, ์ƒˆ๋กœ ์ƒ๊ธด ์‹œ๋ฆฝ ๋„์„œ๊ด€ ๋“ฑ์„ ๋‹ค๋‹ˆ๋ฉฐ ์ฑ…์„ ๋ณด ๊ณ  ์ •๋ฆฌํ•˜๋ฉฐ ์–ด๋Š์ •๋„ ๋…ํ•™์œผ๋ฅด ๊ณต๋ถ€ํ•˜๊ธด ํ–ˆ์ง€๋งŒ, ์ž์ฃผ ์•ˆํ•˜๋‹ค ๋ณด๋ฉด ๊ธˆ๋ฐฉ ์žŠ์–ด ๊ฐœ๋‚˜๋ฆฌ ์—ฐ๊ตฌ์†Œ C ์–ธ์–ด ๋…ธํŠธ (tyback.egloos.com) ํ”„๋กœ๊ทธ๋žจ์„ ํ•™๊ต ๋“ฑ์ง€์—์„œ ์กฐ๊ธˆ์ด๋ผ๋„ ๋ฐฐ์šด ์‚ฌ๋žŒ๋“ค์„ ์œ„ํ•œ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋…ธํŠธ ์ž…๋‹ˆ๋‹ค. ์ € ์—ญ์‹œ ๊ทธ ์‚ฌ๋žŒ๋“ค ์ค‘ ํ•˜๋‚˜ ์ž…๋‹ˆ๋‹ค. ์ค‘๊ณ ๋“ฑํ•™๊ต ์‹œ์ ˆ ํ•™๊ต ๋„์„œ๊ด€, ์ƒˆ๋กœ ์ƒ๊ธด ์‹œ๋ฆฝ ๋„์„œ๊ด€ ๋“ฑ์„ ๋‹ค๋‹ˆ๋ฉฐ ์ฑ…์„ ๋ณด ๊ณ  ์ •๋ฆฌํ•˜๋ฉฐ ์–ด๋Š์ •๋„ ๋…ํ•™์œผ๋ฅด ๊ณต๋ถ€ํ•˜๊ธด ํ–ˆ์ง€๋งŒ, ์ž์ฃผ ์•ˆํ•˜๋‹ค ๋ณด๋ฉด ๊ธˆ๋ฐฉ ์žŠ์–ด๋จน๊ณ  ํ•˜๋”๋ผ๊ตฌ์š”. ๊ทธ๋ž˜์„œ,

More information

Microsoft PowerPoint - chap03-๋ณ€์ˆ˜์™€๋ฐ์ดํ„ฐํ˜•.pptx

Microsoft PowerPoint - chap03-๋ณ€์ˆ˜์™€๋ฐ์ดํ„ฐํ˜•.pptx #include int main(void) { int num; printf( Please enter an integer: "); scanf("%d", &num); if ( num < 0 ) printf("is negative.\n"); printf("num %d\n", num); return 0; } 1 ํ•™์Šต๋ชฉํ‘œ ์˜ ๊ฐœ๋…์— ๋Œ€ํ•ด ์•Œ์•„๋ณธ๋‹ค.

More information

ๅ•†็”จ

ๅ•†็”จ ๅ•†็”จ %{ /* * line numbering 1 */ int lineno = 1 % \n { lineno++ ECHO ^.*$ printf("%d\t%s", lineno, yytext) $ lex ln1.l $ gcc -o ln1 lex.yy.c -ll day := (1461*y) div 4 + (153*m+2) div 5 + d if a then c :=

More information

ร€ยฉยตยตยณร—ร†ยฎยฟรทร‡รยทรŽยฑร—ยทยกยนร–4ร€รฅ_รƒร–รยพ

ร€ยฉยตยตยณร—ร†ยฎยฟรทร‡รยทรŽยฑร—ยทยกยนร–4ร€รฅ_รƒร–รยพ P a 02 r t Chapter 4 TCP Chapter 5 Chapter 6 UDP Chapter 7 Chapter 8 GUI C h a p t e r 04 TCP 1 3 1 2 3 TCP TCP TCP [ 4 2] listen connect send accept recv send recv [ 4 1] PC Internet Explorer HTTP HTTP

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

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

Microsoft PowerPoint - [CPI16] Lecture 10 - ๋ฌธ์ž์—ด.pptx

Microsoft PowerPoint - [CPI16] Lecture 10 - ๋ฌธ์ž์—ด.pptx ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ์ œ 12 ์žฅ๋ฌธ์ž์™€๋ฌธ์ž์—ด ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ์ธ๊ฐ„์€๋ฌธ์ž๋ฅผ์‚ฌ์šฉํ•˜์—ฌ์ •๋ณด๋ฅผํ‘œํ˜„ํ•˜๋ฏ€๋กœ๋ฌธ์ž์—ด์€ํ”„๋กœ๊ทธ๋žจ์—์„œ์ค‘์š”ํ•œ์œ„์น˜๋ฅผ์ฐจ์ง€ํ•˜๊ณ ์žˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œ๋Š” C ์—์„œ์˜๋ฌธ์ž์—ด์ฒ˜๋ฆฌ๋ฐฉ๋ฒ•์—๋Œ€ํ•˜์—ฌ์ž์„ธํžˆ์‚ดํŽด๋ณผ๊ฒƒ์ด๋‹ค. ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด (string): ๋ฌธ์ž๋“ค์ด์—ฌ๋Ÿฌ๊ฐœ๋ชจ์ธ๊ฒƒ "A" "Hello

More information

Microsoft PowerPoint - chap06-8 [ํ˜ธํ™˜ ๋ชจ๋“œ]

Microsoft PowerPoint - chap06-8 [ํ˜ธํ™˜ ๋ชจ๋“œ] 2011-1 ํ•™๊ธฐํ”„๋กœ๊ทธ๋ž˜๋ฐ์ž…๋ฌธ (1) ์ฐธ๊ณ ์ž๋ฃŒ chap 6-8. ๋ฉ”๋ชจ๋ฆฌ๋™์ ํ• ๋‹น ๋ฐ•์ข…ํ˜ Tel: 970-6702 Email: jhpark1@seoultech.ac.kr h k ํ•œ๋น›๋ฏธ๋””์–ด ์ถœ์ฒ˜ : ๋‡Œ๋ฅผ์ž๊ทนํ•˜๋Š” Cํ”„๋กœ๊ทธ๋ž˜๋ฐ, ํ•œ๋น›๋ฏธ๋””์–ด -1- ehanbit.net ๋™์ ํ• ๋‹น์˜ํ•„์š”์„ฑ ํ”„๋กœ๊ทธ๋žจ์„์ž‘์„ฑํ•˜๋Š”๋‹จ๊ณ„์—์„œํ•„์š”ํ•œ๊ธฐ์–ต๊ณต๊ฐ„์˜ํฌ๊ธฐ๋ฅผ๊ฒฐ์ •ํ•˜๋Š” ๊ฒƒ์€์ •์ ํ• ๋‹น์ด๋‹ค. - ๋ณ€์ˆ˜๋‚˜๋ฐฐ์—ด์˜์„ ์–ธ

More information

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜ 7-Segment Device Control - Device driver Jo, Heeseung HBE-SM5-S4210 ์˜ M3 Module ์—๋Š” 6 ์ž๋ฆฌ๋ฅผ๊ฐ€์ง€๋Š” 7-Segment ๋ชจ๋“ˆ์ด์•„๋ž˜๊ทธ๋ฆผ์ฒ˜๋Ÿผ์‹ค์žฅ 6 Digit 7-Segment 2 6-Digit 7-Segment LED controller 16๋น„ํŠธ๋กœ๊ตฌ์„ฑ๋œ 2๊ฐœ์˜๋ ˆ์ง€์Šคํ„ฐ์—์˜ํ•ด์ œ์–ด SEG_Sel_Reg(Segment

More information

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜ 7-Segment Device Control - Device driver Jo, Heeseung HBE-SM5-S4210 ์˜ M3 Module ์—๋Š” 6 ์ž๋ฆฌ๋ฅผ๊ฐ€์ง€๋Š” 7-Segment ๋ชจ๋“ˆ์ด์•„๋ž˜๊ทธ๋ฆผ์ฒ˜๋Ÿผ์‹ค์žฅ 6 Digit 7-Segment 2 6-Digit 7-Segment LED Controller 16๋น„ํŠธ๋กœ๊ตฌ์„ฑ๋œ 2๊ฐœ์˜๋ ˆ์ง€์Šคํ„ฐ์—์˜ํ•ด์ œ์–ด SEG_Sel_Reg(Segment

More information

BMP ํŒŒ์ผ ์ฒ˜๋ฆฌ

BMP ํŒŒ์ผ ์ฒ˜๋ฆฌ BMP ํŒŒ์ผ์ฒ˜๋ฆฌ ๊น€์„ฑ์˜๊ต์ˆ˜ ๊ธˆ์˜ค๊ณต๊ณผ๋Œ€ํ•™๊ต ์ปดํ“จํ„ฐ๊ณตํ•™๊ณผ ํ•™์Šต๋‚ด์šฉ ์˜์ƒ๋ฐ˜์ „ํ”„๋กœ๊ทธ๋žจ์ œ์ž‘ 2 Inverting images out = 255 - in 3 /* ์ดํ”„๋กœ๊ทธ๋žจ์€ 8bit gray-scale ์˜์ƒ์„์ž…๋ ฅ์œผ๋กœ์‚ฌ์šฉํ•˜์—ฌ๋ฐ˜์ „ํ•œํ›„๋™์ผํฌ๋งท์˜์˜์ƒ์œผ๋กœ์ €์žฅํ•œ๋‹ค. */ #include #include #define WIDTHBYTES(bytes)

More information

<4D F736F F F696E74202D20C1A63132C0E520B9AEC0DABFCD20B9AEC0DABFAD>

<4D F736F F F696E74202D20C1A63132C0E520B9AEC0DABFCD20B9AEC0DABFAD> ์‰ฝ๊ฒŒํ’€์–ด์“ด C ์–ธ์–ด Express ์ œ 12 ์žฅ๋ฌธ์ž์™€๋ฌธ์ž์—ด ์ด๋ฒˆ์žฅ์—์„œํ•™์Šตํ• ๋‚ด์šฉ ๋ฌธ์žํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ดํ‘œํ˜„๋ฐฉ๋ฒ• ๋ฌธ์ž์—ด์ด๋ž€๋ฌด์—‡์ธ๊ฐ€? ๋ฌธ์ž์—ด์˜์ž…์ถœ๋ ฅ ๋ฌธ์ž์ฒ˜๋ฆฌ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ํ‘œ์ค€์ž…์ถœ๋ ฅ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌํ•จ์ˆ˜ ์ธ๊ฐ„์€๋ฌธ์ž๋ฅผ์‚ฌ์šฉํ•˜์—ฌ์ •๋ณด๋ฅผํ‘œํ˜„ํ•˜๋ฏ€๋กœ๋ฌธ์ž์—ด์€ํ”„๋กœ๊ทธ๋žจ์—์„œ์ค‘์š”ํ•œ์œ„์น˜๋ฅผ์ฐจ์ง€ํ•˜๊ณ ์žˆ๋‹ค. ์ด๋ฒˆ์žฅ์—์„œ๋Š” C ์—์„œ์˜๋ฌธ์ž์—ด์ฒ˜๋ฆฌ๋ฐฉ๋ฒ•์—๋Œ€ํ•˜์—ฌ์ž์„ธํžˆ์‚ดํŽด๋ณผ๊ฒƒ์ด๋‹ค. ๋ฌธ์ž์˜์ค‘์š”์„ฑ ์ธ๊ฐ„ํ•œํ…Œํ…์ŠคํŠธ๋Š”๋Œ€๋‹จํžˆ์ค‘์š”ํ•˜๋‹ค.

More information

Microsoft PowerPoint - chap11-ํฌ์ธํ„ฐ์˜ํ™œ์šฉ.pptx

Microsoft PowerPoint - chap11-ํฌ์ธํ„ฐ์˜ํ™œ์šฉ.pptx #include int main(void) int num; printf( Please enter an integer: "); scanf("%d", &num); if ( num < 0 ) printf("is negative.\n"); printf("num = %d\n", num); return 0; 1 ํ•™์Šต๋ชฉํ‘œ ํฌ์ธํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋‹ค์–‘ํ•œ ๋ฐฉ๋ฒ•์—

More information

[ ๋งˆ์ดํฌ๋กœํ”„๋กœ์„ธ์„œ 1] 2 ์ฃผ์ฐจ 3 ์ฐจ์‹œ. ํฌ์ธํ„ฐ์™€๊ตฌ์กฐ์ฒด 2 ์ฃผ์ฐจ 3 ์ฐจ์‹œํฌ์ธํ„ฐ์™€๊ตฌ์กฐ์ฒด ํ•™์Šต๋ชฉํ‘œ 1. C ์–ธ์–ด์—์„œ๊ฐ€์žฅ์–ด๋ ค์šดํฌ์ธํ„ฐ์™€๊ตฌ์กฐ์ฒด๋ฅผ์„ค๋ช…ํ• ์ˆ˜์žˆ๋‹ค. 2. Call By Value ์™€ Call By Reference ๋ฅผ๊ตฌ๋ถ„ํ• ์ˆ˜์žˆ๋‹ค. ํ•™์Šต๋‚ด์šฉ 1 : ํ•จ์ˆ˜ (Functi

[ ๋งˆ์ดํฌ๋กœํ”„๋กœ์„ธ์„œ 1] 2 ์ฃผ์ฐจ 3 ์ฐจ์‹œ. ํฌ์ธํ„ฐ์™€๊ตฌ์กฐ์ฒด 2 ์ฃผ์ฐจ 3 ์ฐจ์‹œํฌ์ธํ„ฐ์™€๊ตฌ์กฐ์ฒด ํ•™์Šต๋ชฉํ‘œ 1. C ์–ธ์–ด์—์„œ๊ฐ€์žฅ์–ด๋ ค์šดํฌ์ธํ„ฐ์™€๊ตฌ์กฐ์ฒด๋ฅผ์„ค๋ช…ํ• ์ˆ˜์žˆ๋‹ค. 2. Call By Value ์™€ Call By Reference ๋ฅผ๊ตฌ๋ถ„ํ• ์ˆ˜์žˆ๋‹ค. ํ•™์Šต๋‚ด์šฉ 1 : ํ•จ์ˆ˜ (Functi 2 ์ฃผ์ฐจ 3 ์ฐจ์‹œํฌ์ธํ„ฐ์™€๊ตฌ์กฐ์ฒด ํ•™์Šต๋ชฉํ‘œ 1. C ์–ธ์–ด์—์„œ๊ฐ€์žฅ์–ด๋ ค์šดํฌ์ธํ„ฐ์™€๊ตฌ์กฐ์ฒด๋ฅผ์„ค๋ช…ํ• ์ˆ˜์žˆ๋‹ค. 2. Call By Value ์™€ Call By Reference ๋ฅผ๊ตฌ๋ถ„ํ• ์ˆ˜์žˆ๋‹ค. ํ•™์Šต๋‚ด์šฉ 1 : ํ•จ์ˆ˜ (Function) 1. ํ•จ์ˆ˜์˜๊ฐœ๋… ์ž…๋ ฅ์—๋Œ€ํ•ด์ ์ ˆํ•œ์ถœ๋ ฅ์„๋ฐœ์ƒ์‹œ์ผœ์ฃผ๋Š”๊ฒƒ ๋‚ด๊ฐ€ ( ํ”„๋กœ๊ทธ๋ž˜๋จธ ) ์ž‘์„ฑํ•œ๋ช…๋ น๋ฌธ์„์—ฐ์‚ฐ, ์ฒ˜๋ฆฌ, ์‹คํ–‰ํ•ด์ฃผ๋Š”๋ถ€๋ถ„ ( ๋ชจ๋“ˆ ) ์ž์ฒด์ ์œผ๋กœ์‹คํ–‰๋˜์ง€์•Š์œผ๋ฉฐ,

More information

Microsoft PowerPoint - chap06-8.ppt

Microsoft PowerPoint - chap06-8.ppt 2010-1 ํ•™๊ธฐํ”„๋กœ๊ทธ๋ž˜๋ฐ์ž…๋ฌธ (1) ์ฐธ๊ณ ์ž๋ฃŒ chap 6-8. ๋ฉ”๋ชจ๋ฆฌ๋™์ ํ• ๋‹น ๋ฐ•์ข…ํ˜ Tel: 970-6702 Email: jhpark1@snut.ac.kr ํ•œ๋น›๋ฏธ๋””์–ด ์ถœ์ฒ˜ : ๋‡Œ๋ฅผ์ž๊ทนํ•˜๋Š” Cํ”„๋กœ๊ทธ๋ž˜๋ฐ, ํ•œ๋น›๋ฏธ๋””์–ด -1- ๋™์ ํ• ๋‹น์˜ํ•„์š”์„ฑ ํ”„๋กœ๊ทธ๋žจ์„์ž‘์„ฑํ•˜๋Š”๋‹จ๊ณ„์—์„œํ•„์š”ํ•œ๊ธฐ์–ต๊ณต๊ฐ„์˜ํฌ๊ธฐ๋ฅผ๊ฒฐ์ •ํ•˜๋Š”๊ฒƒ์€์ •์ ํ• ๋‹น์ด๋‹ค. - ๋ณ€์ˆ˜๋‚˜๋ฐฐ์—ด์˜์„ ์–ธ ํ”„๋กœ๊ทธ๋žจ์˜์‹คํ–‰์ค‘์—์ž…๋ ฅ๋˜๋Š”๋ฐ์ดํ„ฐ์—๋งž๊ฒŒ๊ธฐ์–ต๊ณต๊ฐ„์„ํ™•๋ณดํ•ด์•ผํ• ๋•Œ๋Š”๋™์ ํ• ๋‹น์ดํ•„์š”ํ•˜๋‹ค.

More information

Microsoft PowerPoint - Chapter_04.pptx

Microsoft PowerPoint - Chapter_04.pptx ํ”„๋กœ๊ทธ๋ž˜๋ฐ 1 1 Chapter 4. Constant and Basic Data Types April, 2016 Dept. of software Dankook University http://embedded.dankook.ac.kr/~baeksj ์ด์žฅ์˜๊ฐ•์˜๋ชฉํ‘œ 2 ๊ธฐ๋ณธ์ž๋ฃŒํ˜•๋ฌธ์žํ‘œํ˜„๋ฐฉ์‹๊ณผ๋ฌธ์ž์ž๋ฃŒํ˜•์ƒ์ˆ˜์ž๋ฃŒํ˜•๋ณ€ํ™˜ ๊ธฐ๋ณธ์ž๋ฃŒํ˜• (1/8) 3 ๋ณ€์ˆ˜ (Variables)

More information

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜

PowerPoint ํ”„๋ ˆ์  ํ…Œ์ด์…˜ 7-SEGMENT DEVICE CONTROL - DEVICE DRIVER Jo, Heeseung ๋””๋ฐ”์ด์Šค๋“œ๋ผ์ด๋ฒ„๊ตฌํ˜„ : 7-SEGMENT HBE-SM5-S4210 ์˜ M3 Module ์—๋Š” 6 ์ž๋ฆฌ๋ฅผ๊ฐ€์ง€๋Š” 7-Segment ๋ชจ๋“ˆ์ด์•„๋ž˜๊ทธ๋ฆผ์ฒ˜๋Ÿผ์‹ค์žฅ 6 Digit 7-Segment 2 ๋””๋ฐ”์ด์Šค๋“œ๋ผ์ด๋ฒ„๊ตฌํ˜„ : 7-SEGMENT 6-Digit 7-Segment LED

More information