Tel. 042-353-2371

ÆòÀÏ ¿ÀÀü 9½Ã ~ ¿ÀÈÄ 7½Ã
±â¾÷ÀºÇà

010-8649-6758

¿¹±ÝÁÖ:Á¦ÁÖ»ç¶û(¼ÛÁø¾Æ)
C/C++
Ȩ > ȨÆäÀÌÁöÁ¦ÀÛ±³½Ç >C/C++

Ä«Å×°í¸® C
Á¦¸ñ C¾ð¾îÀÇ ±¸¼º
ÀÛ¼ºÀÚ freeweb
ÀÛ¼ºÀÏÀÚ 2009-12-09
Á¶È¸¼ö 1332

* C¾ð¾îÀÇ ±¸¼º

  <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

/* c¾ð¾îÀÇ ÇÁ·Î±×·¥Àº Çϳª ÀÌ»óÀÇ ÇÔ¼ö·Î ±¸¼º µÈ´Ù.

main()/* ¹Ýµå½Ã main()ÇÔ¼ö¸¦ Æ÷ÇÔÇÑ´Ù.

{/* ÇÔ¼ö´Â µ¶¸³ÀûÀÎ °ü°è¿¡ ÀÖ´Ù.

º¯¼ö,ÇÔ¼ö ¼±¾ð

ó¸®

}

¿¹Á¦_001)

include<stdio.h>

main()

{/* c¾ð¾î ÇÁ·Î±×·¥ ½ÃÀÛ */

int i;/* iº¯¼ö°¡ int */

clrscr();

for(i=2;i<=10;i++)

sum(i);

}

sun(n)

{

int j,k=0;

for(j=1;j<=n;j++)

{

printf("%d+",j);

k+=j;

}

printf("b=%dn",k);

getch();

}

¿¹Á¦_002)

/* c ÇÁ·Î±×·¥ ¿¹Á¦_002 */

#include <stdio.h>/* ¼³¸í¹® */

main()/* #include<stdio.h>¼±Çàó¸®(preprocessor)·Î¼­ */

{/* ÇÁ·Î±×·¥ ÄÄÆÄÀÏ ÀÌÀü¿¡ ¸ÕÀú ½ÇÇàÇÑ´Ù. */

int a=10,b=20,c=0;/* <stdio.h>´Â Ç¥ÁØ ÀÔÃâ·Â Çìµå¹®ÀÌ´Ù. */

clrscr();/* main() c¾ð¾î´Â Ç×»ó main()ÇÔ¼ö·ÎºÎÅÍ */

c = a * b;/* compileµÈ´Ù. */

peintf(" %d * %d = %dn",a,b,c);

sub();/* { }ºí·ÏÀÇ ½ÃÀÛ°ú ³¡À» ÀǹÌÇÑ´Ù. */

getch();

}

sub()

{

printf("********************n");

}

(°á°ú)

*******************

10 * 20 = 200

*******************


5. c¾ð¾îÀÇ ±¸¼º ¿ä¼Ò

5-1) ¿¹¾à¾î(reserver word)

; c¾ð¾î¿¡ ÀÇÇØ ±× ±â´É°ú ¿ëµµ°¡ ¹Ì¸® ¿¹¾àµÈ ¿ä¼Ò

ex) µ¥ÀÌÅÍÇü ¼±¾ð : int,short,char........float,struct,union,......

Á¦¾î¹®: if,for,while,case......

¿¬»êÀÚ : sizeof(),..........

dataÇü Á¤ÀÇ : int,char,float,......

5-2) ¸íĪ

; º¯¼ö,ÇÔ¼ö,¹è¿­,»ç¿ëÀÚ°¡ Á¤ÀÇÇÏ´Â µ¥ÀÌÅÍ ÇüÅÂ,±¸Á¶Ã¼,°ø¿ëüÀÇ Ç׸ñÀ̸§

ÁöÁ¤½Ã »ç¿ë.

<ÀÛ¼º±ÔÄ¢>

․¿µ¹®ÀÚ,¼ýÀÚ,¹ØÁÙ(_)À» »ç¿ëÇØ¼­ ÁöÁ¤

․¼ýÀÚ·Î ½ÃÀÛÇØ¼± ¾ÈµÈ´Ù.

․¸ÇóÀ½ 32ÀÚ¸¸ À¯È¿ÇÏ´Ù.

․´ë¼Ò¹®ÀÚ´Â ±¸º°.

․¿¹¾à¾î´Â ¸íĪÀ¸·Î »ç¿ë ºÒ°¡´É.

5-3) ¿¬»êÀÚ

; +,-,*,/,%,․․․․․․․․․․․․․

5-4) »ó¼ö

․¼öÄ¡ »ó¼ö

Á¤¼öÇü »ó¼ö : 1234,01234(8Áø¼ö),0x1234(16Áø¼ö)

½Ç¼öÇü »ó¼ö : 123.345,145.58,......

․±¸ºÐ ¹®ÀÚ ; :,;,{},[],(),¡®,¡°,<,>,....

5-5) °ø¹é ¹®ÀÚ

; °¢ ¿ä¼Ò¸¦ ±¸ºÐ Áþ´Â´Ù.(°ø¶õ,ÅÇ,¸®ÅÏ)

5-6) ÁÖ¼®

; /* ¿Í */ »çÀÌ¿¡ ÀÔ·ÂÇÑ ³»¿ëÀ» ¸»Çϸç ÄÄÆÄÀϽà Á¦¿ÜÇÑ´Ù.

 

 



÷ºÎÆÄÀÏ
À̸§ ºñ¹Ð¹øÈ£



* ÇÑ±Û 1000ÀÚ ±îÁö¸¸ ÀԷ°¡´É : ÀÚ
Poongeaxogy who thinks that - DGG better to rest in the winter?
<a href= http://viagravillage.com/ >v i a g r a canada online</a> | 188.92..xxx.xxx
2011-11-25 14:50:47
toms shoes -- [url=http://www.idfresearch.org/tomsshoesoutlet.html]toms shoes[/url] | 111.146.xxx.xxx 2013-04-25 05:42:22
PUMA -- PUMA http://www.kutuyasuii.com/puma-c-21.html | 110.124.xxx.xxx 2013-06-22 13:29:22
Louboutin Outlet as i know there are lots of <a href="http://sepamujer.org/">Luboutin Outlet</a> online, and i will buy it from there.
Louboutin Outlet http://sepamujer.org/ | 192.95..xxx.xxx
2013-10-01 02:40:29

°ßÀû°è»êÇϱâ
ÀÛ¾÷ÀÇ·Ú
°ßÀû¹®ÀÇ
°øÁö»çÇ×