Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

CµÄÀúÊ·

CµÄÓÉÀ´
CÓïÑÔÊÇÓÉUNIXµÄÑÐÖÆÕßDennis RitchieºÍKen ThompsonÓÚ1970ÄêÑÐÖƳöµÄBÓïÑԵĻù´¡ÉÏ·¢Õ¹ºÍÍêÉÆÆðÀ´µÄ.
CµÄÌصã
CÓïÑÔÊÇÒ»ÖÖÃæÏò¹ý³ÌµÄÓïÑÔ,ͬʱ¾ßÓлã±àÓïÑԺ͸߼¶ÓïÑÔµÄÓŵã.CÓïÑÔ¿ÉÒԹ㷺ӦÓÃÓÚ²»Í¬µÄ²Ù×÷ϵͳ,ÈçUNIX,DOS,Windows¼°LinuxµÈ.
CµÄ·¢Õ¹
1973Äê,CÓïÑÔµÚÒ»´Î±»ÓÃÀ´±àд²Ù×÷ϵͳ(Unix)µÄÄÚºË.Dennis RitchieºÍBrian KernighanÔÚ1978Äê³ö°æÁË<<C³ÌÐòÉè¼ÆÓïÑÔ>>(The C Programming Language,¾­³£¼ò³ÆΪ"°×ƤÊé"»ò"K&R").
1980ÄêÒÔºó,±´¶ûʵÑéÊÒʹµÃC±äµÃ¸üΪ¹ã·ºµÄÁ÷ÐÐ,CÒ»¶È³ÉΪ²Ù×÷ϵͳºÍÓ¦ÓóÌÐò±à³ÌµÄÊ×Ñ¡.
1983Äê,ÃÀ¹ú¹ú¼Ò±ê׼ίԱ»á(ANSI)¶ÔCÓïÑÔ½øÐÐÁ˱ê×¼»¯,°ä²¼Á˵ÚÒ»¸öCÓïÑÔ±ê×¼²Ý°¸.ºóÀ´ÓÚ1987ÄêÓÖ°ä²¼ÁËÁíÒ»¸öCÓïÑÔ±ê×¼²Ý°¸.×îÖÕ1988Äê10Ô°䲼ÁËANSI±ê×¼X3.159-1989.Ò»Äê×óÓÒÒÔºó,¸Ã±ê×¼±»½ÓÊÜΪ¹ú¼Ê±ê×¼, ISO/IEC 9899:1990.³ÆΪC89»òC90.
1994Äê, ¼¼Êõ¿±Îó1(TC1) ÐÞÕýÁ˱ê×¼ÖÐ40´¦µØ·½,1995 Äê,TC2 Ôö¼ÓÁËһЩ¸ü¶àµÄСÐÞ¸Ä.ÆÚ¼äÌá³ö¹ý¶Ô90°æ¹æ·¶µÄÐÞ¶©°¸,³ÆΪC95(»òÕßAMD1).
1999ÄêÓÖ³ö°æÁË×îеÄCÓïÑÔ±ê×¼ISO9899:1999.²¢ÔÚ2000Äê3Ô±»ANSI²ÉÓÃ.³ÆΪC99.2001Äê¶ÔC99µÄÏà¹Ø´íÎó½øÐÐÁËÐÞÕý.
ÓÉC·¢Õ¹¶øÀ´µÄеıà³ÌÓïÑÔÓÐ,C++ºÍObjective CÌṩÁËÓÃÓÚÃæÏò¶ÔÏóµÄ±à³Ì½á¹¹.JavaºÍC#¸üÔö¼ÓÁ˶ÔÄÚ´æ¹ÜÀíµÄ×Ô¶¯»¯.
½ñÌì,CÓïÑÔÈÔ±»¹ã·ºÓÃÓÚ±àд²Ù×÷ϵͳÒÔ¼°×÷Ϊ¼ÆËã»ú½ÌÓýµÄÊ×Ñ¡ÓïÑÔ.
CµÄ±ê×¼»¯
ÓÉCµÄ·¢Õ¹¿ÉÖª,CµÄ±ê×¼»¯Ö÷ÒªÓÐÈý:
Ò».K&R C, ÓÉThe C Programming LanguageÕâ±¾ÊéËù¶¨ÒåµÄCÓïÑÔ.
¶þ.ANSI C,Ò²¿É³ÆC89, ÓÉX3.159-1989(ISO/IEC 9899:1990)Ëù¶¨ÒåµÄCÓïÑÔ.
Èý.C99,  ÓÉISO9899:1999Ëù¶¨ÒåµÄCÓïÑÔ


Ïà¹ØÎĵµ£º

¹ØÓÚ Ö¸Õë CµÄ¾«Ëè

ÒªÁ˽âÖ¸Õë,¶à¶àÉÙÉÙ»á³öÏÖһЩ±È½Ï¸´ÔÓµÄÀàÐÍ,ËùÒÔÎÒÏȽéÉÜ
Ò»ÏÂÈçºÎÍêÈ«Àí½âÒ»¸ö¸´ÔÓÀàÐÍ,ÒªÀí½â¸´ÔÓÀàÐÍÆäʵºÜ¼òµ¥,Ò»
¸öÀàÐÍÀï»á³öÏֺܶàÔËËã·û,ËûÃÇÒ²ÏñÆÕͨµÄ±í´ïʽһÑù,ÓÐÓÅÏÈ
¼¶,ÆäÓÅÏȼ¶ºÍÔËËãÓÅÏȼ¶Ò»Ñù,ËùÒÔÎÒ×ܽáÁËÒ»ÏÂÆäÔ­Ôò:
´Ó±äÁ¿Ãû´¦Æð,¸ù¾ÝÔËËã·ûÓÅÏȼ¶½áºÏ,Ò»²½Ò»²½·ÖÎö.
ÏÂÃæÈÃÎÒÃÇÏÈ´Ó¼òµ¥µÄÀàÐ ......

C·¢Éù³ÌÐò

#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
#include <math.h>
#include <conio.h>
typedef struct {
      short int pitch;
      short int duration;
} NOTE;
NOTE notes[] = {{14, 500}, {16, 500}, {12, 500 ......

GNU C LIB

×ÔÓɵĸèÒ¥

¡¡¡¡±¾ÊéÊÇ×ÔÓÉÈí¼þ´ÔÊéµÄÒ»²¿·Ö£¬Ò²ÊÇÒ»Ê××ÔÓɵĸèÒ¥¡£
¡¡¡¡±¾ÊéÖвûÊöµÄGNU C¿â£¬¶¨ÒåÁËËùÓÐÔÚISO C±ê×¼Ëù¹æ¶¨µÄ£¬ÒÔ¼°POSIX±ê×¼¡¢ÆäËüÏà¹Ø±ê×¼ºÍUNIXϵͳËùÅÉÉúµÄ±ê×¼Öж¨ÒåµÄËùÓк¯Êý£¬ÎªGNU²Ù×÷ϵͳËùÖ§³Ö¡£
C³ÌÐòÉè¼ÆÓïÑÔÌṩÖîÈçÊäÈë/Êä³ö¡ ......

CÓïÑÔº¯Êý£¨¶þ£©

¡¾Àý8.6¡¿HanoiËþÎÊÌâ
    Ò»¿é°åÉÏÓÐÈý¸ùÕ룬A£¬B£¬C¡£AÕëÉÏÌ×ÓÐ64¸ö´óС²»µÈµÄÔ²ÅÌ£¬´óµÄÔÚÏ£¬Ð¡µÄÔÚÉÏ¡£Èçͼ5.4Ëùʾ¡£Òª°ÑÕâ64¸öÔ²ÅÌ´ÓAÕëÒƶ¯CÕëÉÏ£¬Ã¿´ÎÖ»ÄÜÒƶ¯Ò»¸öÔ²ÅÌ£¬Òƶ¯¿ÉÒÔ½èÖúBÕë½øÐС£µ«ÔÚÈκÎʱºò£¬ÈκÎÕëÉϵÄÔ²Å̶¼±ØÐë±£³Ö´óÅÌÔÚÏ£¬Ð¡ÅÌÔÚÉÏ¡£ÇóÒƶ¯µÄ²½Öè¡£
±¾ÌâËã·¨·ÖÎöÈçÏ£¬ÉèAÉÏ ......

CÓïÑÔÎļþ

13.1 CÎļþ¸ÅÊö
    Ëùν“Îļþ”ÊÇÖ¸Ò»×éÏà¹ØÊý¾ÝµÄÓÐÐò¼¯ºÏ¡£Õâ¸öÊý¾Ý¼¯ÓÐÒ»¸öÃû³Æ£¬½Ð×öÎļþÃû¡£Êµ¼ÊÉÏÔÚÇ°ÃæµÄ¸÷ÕÂÖÐÎÒÃÇÒѾ­¶à´ÎʹÓÃÁËÎļþ£¬ÀýÈçÔ´³ÌÐòÎļþ¡¢Ä¿±êÎļþ¡¢¿ÉÖ´ÐÐÎļþ¡¢¿âÎļþ (Í·Îļþ)µÈ¡£
    Îļþͨ³£ÊÇפÁôÔÚÍⲿ½éÖÊ(Èç´ÅÅ̵È)Éϵģ¬ÔÚʹÓÃʱ²Åµ÷ÈëÄÚ´æÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ