ÄÄÇ»ÅÍ ÇÁ·Î±×·¡¹Ö
C Programming Language
- 1972³â AT&T Bell Lab.ÀÇ Dennis Ritchie°¡ °³¹ß
- Bjarne Stroustrup¿¡ ÀÇÇØ C++·Î ¹ßÀü
- C ¾ð¾îÀÇ Æ¯Â¡
- Simple - ¼Ò¼öÀÇ reserved word (ÁöÁ¤¾î) »ç¿ë
- Powerful - System ¼¼ºÎ ±â´É±îÁö control °¡´É
- Portable - ¿©·¯ ±âÁ¾¿¡¼ »ç¿ë °¡´É (ȣȯ¼ºÀÌ ¶Ù¾î³²)
- Functionµé·Î ±¸¼º (Modular)
- C++¾ð¾îÀÇ ±âº»
- Compile ¾ð¾î
- »ç¿ëÇϱⰡ ½±Áö ¾Ê´Ù.
C ÇÁ·Î±×·¡¹Ö ȯ°æ
1. MS-Windows ȯ°æ
- Borland C/C++
- Microsoft Visual C/C++
2. UNIX ȯ°æ
- cc (UNIX default C compiler)
- GNU C
3. MS-DOS ȯ°æ
4. ÇÁ·Î±×·¡¹Ö ÀýÂ÷
- Source Program ÀÛ¼º (XXX.c ¿Í HHH.h files)
- Compile (XXX.obj - object file)
- Link (XXX.exe - execution file)
- Execute
Visual C/C++´Â À§ 4´Ü°è¸¦ ÅëÇÕÇÑ È¯°æÀ» Á¦°øÇÑ´Ù.
¸¶ÀÌÅ©·Î¼ÒÇÁÆ®(MS) Visual C/C++ ȯ°æ
- Root directory ¹Ø¿¡ Work directory¸¦ ¸¸µç´Ù (ÀÌ¹Ì ¸¸µé¾îÁ® ÀÖ´Â °æ¿ì´Â ¹«½Ã).
- Work directory ¹Ø¿¡ °¢ÀÚÀÇ À̸§À¸·ÎµÈ directory¸¦ ¸¸µç´Ù.
- MS Developer's Studio (MSDev)¸¦ ½ÇÇàÇÑ´Ù. (¹ÙÅÁȸ鿡¼ Msdev [¸þºñ¿ì½ºÀÇ ¶ì] ¾ÆÀÌÄÜ(icon) ¿¡ ¸¶¿ì½º ¿ÞÂÊ ¹öÆ°À» µÎ¹ø
ºü¸£°Ô click [double click]Çϰųª ½ÃÀÛ¸Þ´º¿¡¼ [ÇÁ·Î±×·¥]->[Microsoft Visual C++]->[Microsoft Visual C++] À»
¼±ÅÃÇÑ´Ù.)
- Visula C°¡ ½ÇÇàµÇ¸é [File¸Þ´º]->New ¸¦ ¼±ÅÃÇÑ´Ù.
- Project Dialog â¿¡¼ [Win32 Console Application]À» ¼±ÅÃÇÑ´Ù.
- °°Àº â¿¡¼ [Location] Ç׿¡ °¢ÀÚÀÇ Directory À̸§À» ³Ö´Â´Ù. (¿¹: c:\Work\È«±æµ¿)
- °°Àº â¿¡¼ [Project name] Ç׿¡ ÇÁ·Î±×·¥ À̸§À» ³Ö´Â´Ù. (¿¹: Hello)
- Visual StudioÀÇ [Work Space] â¿¡¼ [FileView] TabÀ» ¼±ÅÃÇÑ´Ù.
- Project Files Ç׸ñ¿¡ ÇÁ·Î±×·¥ fileÀ» Ãß°¡ÇÑ´Ù. (¿¹: Hello.c)
- Ãß°¡µÈ fileÀ» ¼±ÅÃÇÏ¿© Edit â¿¡¼ ÇÁ·Î±×·¥À» ÀÛ¼ºÇÑ´Ù.
- ÇÁ·Î±×·¥ ÀÛ¼ºÀÌ ³¡³ª¸é [Build ¸Þ´º]->Execute Ç׸ñÀ» ¼±ÅÃÇÑ´Ù.
- ÇÁ·Î±×·¥¿¡ ¿À·ù°¡ ¾øÀ¸¸é ½ÇÇà âÀ» º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù. ¿À·ù°¡ ÀÖÀ¸¸é ¼öÁ¤ÇÏ¿© ´Ù½Ã ½ÇÇà½ÃŲ´Ù.
¼÷Á¦ Á¦Ãâ ¹æ¹ý
ÀÌ °ÀÇÀÚ·á´Â ±¹¹Î´ëÇб³ ÄÄÇ»ÅÍÇкΠÇѱ¤¼ö ±³¼ö´Ô²²¼ ¸¸µé¾ú½À´Ï´Ù.