C Runtime LibraryÀ´Àú, API, MFC, ATL¹Øϵ
CRTÔÏÈÊÇÖ¸Microsoft¿ª·¢µÄC Runtime Library£¬ÓÃÓÚ²Ù×÷ϵͳµÄ¿ª·¢¼°ÔËÐС£ºóÀ´ÔÚ´Ë»ù´¡ÉÏ¿ª·¢ÁËC++ Runtime Library£¬ËùÒÔÏÖÔÚCRTÊÇÖ¸Microsoft¿ª·¢µÄC/C++ Runtime Library¡£ÔÚVCµÄCRT/SRCĿ¼Ï£¬¿ÉÒÔ¿´µ½CRTµÄÔ´Â룬²»½öÓÐCµÄ£¬Ò²ÓÐC++µÄ¡£
CRTÔÏȵÄÄ¿µÄ¾ÍÊÇÖ§³Ö²Ù×÷ϵͳµÄÔËÐС£ÒòΪWindows²Ù×÷ϵͳ³ý»ã±à²¿·ÖÍ⣬¶¼ÊÇÓÃC/C++±àдµÄ£¬ËùÒÔÄں˼°Ðí¶à¹Ø¼ü·þÎñ¶¼ÔÚCRTÉÏÔËÐУ¨ËüÃǶ¼²ÉÓÃdll¼¼Êõ¶¯Ì¬Á´½Ó£©¡£´ËÍ⣬Óà VC±àдµÄC/C++³ÌÐòÒ²Óõ½ËüÃÇ£¨¿ÉÒÔ¶¯Ì¬Á´½Ó£¬Ò²¿ÉÒÔ¾²Ì¬Á´½Ó£¬Ç°ÕßÔËÐÐʱÐèҪϵͳÖÐÒÑ°²×°CRTµÄdll£¬ºóÕß²»ÐèÒª£©¡£¿ÉÒÔ˵£¬CRT¾ÍÊÇ Microsoft±àдWindowsʱʹÓõĵͲãÀà¿â¡£È»ºó£¬ËüÓÖ±»µ±×÷C++±ê×¼¿âµÄÒ»¸öʵÏÖ°üº¬ÔÚÁËVCϵÁÐÖУ»ÎÒÃÇÔÚVCÖÐʹÓõÄC++±ê×¼¿â£¬Æäʵ¾ÍÊÇCRTµÄÒ»¸öÕæ×Ó¼¯£¨ÉÙÁËC++±ê×¼Ëù²»°üº¬µÄ´úÂ룬ÌرðÊÇ´óÁ¿µÄµÍ²ãC´úÂ룩
ÖÁÓÚCRTÓëWINDOWS APIµÄ¹Øϵ£¬ÓëÐí¶àÈËÀí½âµÄÏà·´£¬WINDOWS API×÷ΪWindowsµÄÒ»²¿·Ý£¬ÊÇÔÚCRTµÄ»ù´¡ÉÏ¿ª·¢µÄ¡£Äã¿ÉÒÔ½«Windows£¨¼°ÆäAPI£©¿´×÷Ò»¸öÏîÄ¿£¬¶øÕâ¸öÏîĿʹÓõÄÓïÑÔÊÇ»ã±à/C/C ++£¬Ê¹ÓõÄÀà¿â¾ÍÊÇCRT¡£ËùÒÔ£¬À뿪CRT£¬Windows APIÒ²ÎÞ·¨Ê¹Óõġ£
C++±ê×¼£¬ÊÇC++µÄͨÓÃÓïÑԹ淶£¬Ö¸µ¼ËùÓÐC ++ʹÓÃÕß¡£¶øCRTµÄÆäÖÐÒ»²¿·Ö¿ÉÒÔ¿´×÷ÊÇMicrosoft¿ª·¢µÄÒ»¸öC++±ê×¼¿âʵÏÖ£¨ÆäʵҲȷʵÈç´Ë£¬MicrosoftÔÚ¿ª·¢CRTʱ£¬²Î¿¼ÁËÕýÔÚ±ê×¼»¯¹ý³ÌÖеÄC++ÓïÑԹ淶£©¡£ËüÓëC++±ê×¼ÓÐÒ»¶¨µÄ²î¾à£¬²¿·ÖÔÒòÊÇ£¬ÔÚC++ûÓÐÍê³É±ê×¼»¯Ö®Ç°£¬CRTÒѾ¿ª·¢²¢Í¶ÈëʹÓÃÁË¡£ÎªÁËÏòϼæÈÝÒÔÇ°µÄWindows´úÂ룬ÔçÆÚµÄCRTÓëC++±ê×¼×ÜÓÐÒ»¶¨µÄ²î¾à¡£µ«ÊÇCRTȷʵÔÚ²»¶ÏµÄ¸Ä½øÖС£VC6´øµÄCRTÓëC++±ê×¼»¹ÓбȽϴóµÄ²î¾à£¬¶ø VC8µÄ¼¸ºõÍêÈ«·ûºÏC++±ê×¼ÁË¡£
×ÛÉÏ£¬CRT£¨Microsoft's C/C++ Runtime Library£©µÄÒ»¸öÕæ×Ó¼¯£¨Ö÷ÒªÊÇC++ Runtime Library£©ÊÇÒ»¸ö·ûºÏ£¨»òÖÁÉÙÊÇÆóͼ·ûºÏ£©C++±ê×¼µÄC++¿â¡£¶øWindows API£¨ÒÔ¼°WindowsµÄÆäËûÐí¶à²¿·Ö£©¶¼ÊÇÔÚCRTµÄ»ù´¡ÉÏ¿ª·¢µÄ¡£
³ýÁËÒÔÉϽéÉܵģ¬ÔÚʹÓÃCRTµÄ¹ý³ÌÖУ¬»¹ÐèÒªÁ˽âµÄÊÇ£º
1¡¢CRTµÄһЩ×é³É²¿·ÖÒ²µ÷ÓÃÁËWindows API¡£Õâ¿ÉÄܾÍÊÇÓÐÈËÈÏΪCRTÊǽ¨Á¢µÄWindows API»ù´¡ÉϵÄÔÒò¡£µ«ÊÇʵ¼ÊÉÏ£¬ÕâÒ»²¿·Ö°þÀëCRTûÓÐÈκεÄÎÊÌâ¡£Ö»
Ïà¹ØÎĵµ£º
pFn¡¡t1(void);
pFn¡¡t2(void);
int main()
{
¡¡¡¡pFn fn = t1 ;
¡¡¡¡while(1){
¡¡¡¡¡¡¡¡fn = fn();¡¡¡¡//Õâ¸ö£¬´ó¼Ò¿´Çå³þÁË
¡¡¡¡}
}
pFn¡¡t1()
{
¡¡¡¡printf("t1\n");
¡¡¡¡return t2 ;
}
pFn¡¡t2()
{
¡¡¡¡printf("t2\n");
¡¡¡¡return t1 ;
}
ÇëÎÊ£¬Ïëͨ¹ý±àÒ룬pFnº¯ÊýÖ¸ÕëÀàÐÍ ......
¸ÅÄαËæ»úÊý¡¢ÖÖ×ÓÒÔ¼°CÖеÄËæ»úº¯Êý
2007Äê12ÔÂ03ÈÕ ÏÂÎç 02:28
Ê×ÏÈÐèÒªÉùÃ÷µÄÊÇ£¬¼ÆËã»ú²»»á²úÉú¾ø¶ÔËæ»úµÄËæ»úÊý£¬¼ÆËã»úÖ»ÄܲúÉú“αËæ»úÊý”¡£Æäʵ¾ø¶ÔËæ»úµÄËæ»úÊýÖ»ÊÇÒ»ÖÖÀíÏëµÄËæ»úÊý£¬¼´Ê¹¼ÆËã»úÔõÑù·¢Õ¹£¬ËüÒ²²»»á²úÉúÒ»´®¾ø¶ÔËæ»úµÄËæ»úÊý¡£¼ÆËã»úÖ»ÄÜÉú³ÉÏà¶ÔµÄËæ»úÊý£¬¼´Î±Ëæ»úÊý¡£
......
B/S½á¹¹£¨Browser/Server½á¹¹£©½á¹¹¼´ä¯ÀÀÆ÷ºÍ·þÎñÆ÷½á¹¹¡£
1.½ÚÔ¼³É±¾~~~~~
´ó´ó¼ò»¯ÁË¿Í»§¶ËµçÄÔÔغɣ¬¼õÇáÁËϵͳά»¤ÓëÉý¼¶µÄ³É±¾ºÍ¹¤×÷Á¿£¬½µµÍÁËÓû§µÄ×ÜÌå³É±¾£¨TCO)!ËüÊÇÒ»´ÎÐÔµ½Î»µÄ¿ª·¢!
2.°²È«~~~
ËüÄÜÓÐЧµØ±£»¤Êý¾Ýƽ̨ºÍ¹ÜÀí·ÃÎÊȨÏÞ£¬·þÎñÆ÷Êý¾Ý¿âÒ²ºÜ°²È« ¡£ÔÚÍøÂç¸÷¹¤×÷վͨ¹ýWWWä¯ÀÀÆ÷¾ÍÄÜʵÏÖ¹¤×÷ҵΠ......
C¿âº¯Êý
×Ö·û´®º¯Êý
º¯ÊýÃû
º¯ÊýÔÐÍ
¹¦ÄÜ
·µ»ØÖµ
°üº¬Í·Îļþ
strcat
char *strcat(char *st1, char *str2)
°Ñstr2Á¬½Óµ½str1ºóÃæ
str1
string.h
strchr
char *strchr(char *str, int ch)
ÕÒ³östrÖ¸ÏòµÄ×Ö·û´®ÖеÚÒ»´Î³öÏÖ×Ö·û´®chµÄλÖÃ
Ö¸Ïò¸ÃλÖõÄÖ¸Õ룬δÕÒµ½Ôò·µ»Ø¿ÕÖ¸Õë
......
×÷ÕߣºKevin Lynx¡¡À´Ô´£ºC++²©¿Í
ת×Ô:http://www.kuqin.com/language/20080319/4797.html
ÖÚ¶àC++Êé¼®¶¼ÖÒ¸æÎÒÃÇCÓïÑÔºêÊÇÍò¶ñÖ®Ê×£¬µ«ÊÂÇé×ܲ»ÈçÎÒÃÇÏëÏóµÄÄÇô»µ£¬¾ÍÈçͬgotoÒ»Ñù¡£ºêÓÐ
Ò»¸öºÜ´óµÄ×÷Ó㬾ÍÊÇ×Ô¶¯ÎªÎÒÃDzúÉú´úÂë¡£Èç¹û˵ģ°å¿ÉÒÔΪÎÒÃDzúÉú¸÷ÖÖÐͱðµÄ´úÂë(ÐͱðÌæ»»)£¬
ÄÇôºêÆäʵ¿ÉÒÔΪÎÒÃÇÔÚ·ûºÅÉÏ ......