** çҹ繤Դ繢ͧ¹ͧ 觼ҹ繵ͧ繴令Ѻ
ҡ բʹ ;ͤ ԡ سѧ¹¤Ѻ ӡ䢢
١ͧ Ѻ
Ѻ˹ѡ
 

C ͹ й C ͧ

㹺ͧ C 鹨繡¹鹰ҹͷеʹ¹Ẻءҹ ǹáǶ֧鹰ҹ¹ Ш价¹鹴ҹäӹdz зҧҹ¹令Ѻ

ѡ C ͹
C дѺ٧ ¹ҤѺ C ԧçҧѺ͹㨧 C ѲҢ .. 1972 ഹ ʫ Bell Telephone Laboratonce ,Inc C աþѲҨҡ B 㹪ǧá C ١ҧѺкԺѵԡ Unix

ش蹢ͧ C
- Ҥ ẺԧçҧѺ㹡þѲк
- ҤҵðҹѺ cpu 蹵ҧ
- дѺ٧ ӧҹ͹дѺ öӧҹ᷹ Assembly
- C ջԷҾ ӧҹ

çҧ C

1. δ ҵðҹͧ C ж١֧ҹѺ 㹢з compile #include ¹ 2 ٻẺ #include
#includeHeader

2. Global 繵÷Сö

3. ѧ ǹ÷ӧҹͧ 觨еͧ ѧ main () 繿ѧ÷ӧҹͧ 㹢ͺࢵͧѧ蹨еͧͧ { ʴ ͧ} شͧѧ

4. Local 繵÷СǨ㹿ѧ蹷˹ҹ

5.ǹ 繤觡÷ӧҹͧ 觨Ш÷ӧҹͧ ; ء

6. 觤ҡѺ ǹ觢šѺͨ÷ӧҹͧѧ Ҩա ͧ觤ҡѺ void

ҹ Visual C++ 6.0 㹡¹ C
¹ C ö͡Ǥµ TurboC Visual C++ 繵 㹺 Visual C++ 6.0 Ѻ Шʹ C++ Visual C++ 6.0 㹵͹áͧӡõԴѹ͹Ѻ ͵Դѹ ͧ ˹Ѻ¹ C ѹ ·ӵӴѺѧѺ


Visual C++ 6.0


价 File > New


ҧҹ


͡ Win23 Console Application 㹪ͧ
Project name е駪ͧҹ
Location ͡级ҹ


á˹ҵҧ


ҡ Click ͡ Win23 Console Application դ


Click ͡ Win23 Console Application


˹ Win23 Console Application ͡ An emply project Finish


͡ An emply project


˹ New Project Information 顴 OK


˹ New Project Information


͡ New Text File


New Text File


鹷㹡¹ ҡ鷴ͧ¹


¹



ͺ¹


ҡӡ Save ¹ʡ .C


ʡ .C


ҡ Click ҹ͡ Insert File into Project


Insert File into Project


ҡӡ 价 Build > Compile


Compile


ҡ鹴ټš÷ӧҹͧ ͡ Execute


š÷ӧҹ


ҡ¹ҡѡ 㹵͹仨Ƕ֧ ٻẺ¹еҧ Code Ѻ ǹҹʹͧͧ C öҫ˹ѧҹ Ңŵҧ code ҧҡ www.google.co.th Ѻ 㹡ý֡¹㹵Ǵ¤Ѻ


¹ 7 .. 2554