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

¼òÊöCºÍC++³ÌÐòԱѧϰÀú³Ì

×ÜÊDZ»Í¬Ñ§ÃÇÎʵ½£¬ÈçºÎѧϰCºÍC++²Å²»Ã£È»£¬²Å²»ÊÇÂÒѧ£¬ÏëÁËһϣ¬ÕâÀï¸ø³öÒ»¸ö×ܵĻظ´¡£
¡¡¡¡Ò»¼ÒÖ®ÑÔ£¬»¶Ó­ÅÄש¹þ¡£
¡¡¡¡1¡¢¿ÉÒÔ¿¼ÂÇÏÈѧϰC.
¡¡¡¡´ó¶àÊýʱºò£¬ÎÒÃÇѧϰÓïÑÔµÄÄ¿µÄ£¬²»ÊÇΪÁ˳ÉΪһ¸öÓïÑÔר¼Ò£¬¶øÊÇÏ£Íû³ÉΪһ¸ö½â¾öÎÊÌâµÄר¼Ò¡£×öÒ»¸öÓÐÓõijÌÐòÔ±£¬×öÒ»¸ö׬ǮµÄ³ÌÐòÔ±¡£ÎÒÃǵļÛÖµ£¬½«ÌåÏÖÔÚ¿Í»§¼ÛÖµÉÏ£¬¶ø²»ÊÇÓïÑÔдµÃºÃ²»ºÃ¿´¡£
¡¡¡¡C++ÊÇCµÄÒ»¸öÃæÏò¶ÔÏóµÄ½âÊÍ£¬C++ΪCÀ©³äÁË´ó¹æÄ£¹¤³ÌÓ¦Ó㬸´ÔÓµÄϵͳ½á¹¹µÄ×éÖ¯ºÍÕÆ¿Ø·½·¨£¬µ«ÊÇ£¬ÎÒÈÏΪ£¬C++¹Ç×ÓÀﻹÊÇCµÄ¡£
¡¡¡¡±Ï¾¹£¬½â¾ö¾ßÌåÎÊÌ⣬ÿ¸öº¯ÊýÄÚ²¿£¬¶¼ÊÇÓÃCµÄ·½Ê½Ð´³ÌÐò£¬»¹ÊÇÃæÏò¹ý³ÌµÄ¡£
¡¡¡¡Òò´Ë£¬ÏëҪѧϰºÃC++£¬ÎҵĽ¨Ò飬ÏÈѧϰC£¬ÏÈѧ½â¾öÎÊÌâµÄÄÜÁ¦£¬ÔÙÌÖÂÛ½â¾ö´óÎÊÌâµÄÄÜÁ¦¡£¾ÍÊÇÏÈѧϰÔõô×ß·£¬ÔÙѧϰÔõôÅܲ½¡£
¡¡¡¡2¡¢Ñ§Ï°CµÄ¹ý³ÌÖУ¬Ò»¶¨ÒªÀí½â½á¹¹»¯±à³Ì˼ά¡£
¡¡¡¡ÎªÊ²Ã´ÄØ£¬ÎÒÇ°ÃæÓÐÎÄÕÂ˵¹ý£¬Èí¼þÓïÑԵķ¢Õ¹¹ý³Ì£¬¾ÍÊÇÒ»¸öÊý¾Ý˽Óл¯µÄ¹ý³Ì£¬´óÐ͹¤³ÌÓ¦Óã¬Ç¿µ÷¸ßÄÚ¾Û£¬µÍñîºÏ£¬Ä£¿é»¯Éè¼Æ£¬±£³Ö´úÂë×î´óµÄÁé»îÐԺͰ²È«ÐÔ¡£
ÕâÊÇÏÖ´ú¹¤³Ì»¯¿ª·¢µÄºËÐĺÍÁé»ê¡£
¡¡¡¡Òò´Ë£¬ÀûÓÃCÕâÃÅÓïÑÔÈëÃÅ£¬½è´ËÀí½â½á¹¹»¯¿ª·¢Ë¼Î¬£¬¿ÉÒÔ˵ÊǸöºÜ·½±ãµÄ·×Ó¡£ÒòΪCµÄº¯Êý£¬±¾À´¾ÍÊÇΪÖØÓÃ×ö×¼±¸µÄ¡£Í¬Ê±£¬È«¾Ö±äÁ¿ºÍcppÄÚ²¿Ë½ÓбäÁ¿µÄ²î±ð£¬ÆäʹÓÃÔ­Ôò£¬ÕâЩ¶¼ÄÜѧµ½ºÜ¶à½á¹¹»¯¿ª·¢Ë¼Î¬¡£
¡¡¡¡3¡¢¿ªÊ¼Ñ§Ï°C++
¡¡¡¡C++²»ÄÑѧµÄ£¬ºÜ¶àÈ˾õµÃC++ÄÑѧ£¬ÆäʵÊÇÒòΪËüÔÚCÖ®Í⣬ÓÖÌṩÁ˺ܶàµÄ¸ÅÄÓÈÆäÊǶÔÏ󣬺ÜÄÑÒÔÀí½â¡£
¡¡¡¡²»¹ýÎÒ¾­¹ýÕâô¶àÄ꣬°ÑÕâ¸öÎÊÌâ·´¶ø¿´µ­ÁË£¬ÎÒÈÏΪÃæÏò¶ÔÏóÏà¶ÔÃæÏò¹ý³Ì£¬½ö½öÊǽṹ»¯³ÌÐòÉè¼ÆµÄÒ»¸ö¾ßÌåÌåÏÖ£¬ÊDZàÒëÆ÷ÌṩÊֶΣ¬Ç¿ÆȳÌÐòÔ±±ØÐë×ñÑ­Êý¾Ý˽Óл¯µÄÒ»¸öʵÀý£¬C++ºÍCµÄ¹Øϵ£¬×îºËÐĵÄĪ¹ýÓÚ´Ë¡£
¡¡¡¡ÏÖÔÚÎÒÃǻص½CÔÙ¿´¿´£¬Èç¹ûÎÒÃÇ°ÑÒ»¸öÈ«¾Ö±äÁ¿£¬Ð´µ½Ò»¸öcppÀïÃ棬²¢ÇÒÔÚ¶ÔÓ¦µÄhÎļþÖв»ÉùÃ÷£¬ËüÊDz»ÊǾÍÖ»ÓÐÕâ¸öÄ£¿é¿ÉÒÔʹÓã¿ËüÊDz»ÊǾÍÊÇ˽ÓбäÁ¿£¬ÒÔÕâ¸öÀí½â£¬ÀàÄÜÃ÷°×ÁËÂð£¿
¡¡¡¡4¡¢Ñ§Ï°C++µÄÉîÈë¼¼ÇÉ
¡¡¡¡C++ÔÚÀàµÄ»ù´¡ÉÏ£¬¾­¹ýÕâô¶àÄêµÄ·¢Õ¹£¬ÆäʵÌṩÁ˺ܶàÉîÈëµÄ¸ÅÄ¿´ÆðÀ´ºÜ¸´ÔÓ£¬ÆäʵÎÒ¿´Ò²ºÜ¼òµ¥¡£±ÈÈçÄ£°å£¬ÎÒµÄÀí½â¾ÍÊÇ“ÀàµÄÀà”£¬´ó¼Ò˵ÊDz»ÊÇ£¿
¡¡¡¡¼ÈȻģ°åÀí½âÁË£¬STL£¬ATLÕâЩ£¬¾²Ì¬Ä£°å¿â£¬¶¯Ì¬Ä£°å¿â£¬»¹ÄÑÀí½âÂ𣿾ÍÊÇÒ»´ó¶ÑÀàµÄÀ࣬¿ÉÒÔ½è´ËʵÏֺܶàÓ¦ÓÃÖÐÐèÒªµÄÀ࣬²»ÐèÒª³ÌÐòÔ±ÔÙ×Ô¼ºÐ´¶øÒÑ¡£
¡¡¡¡ok£¬STL¶¼Àí½âÁË£¬·ºÐÍ¿ª·¢»¹ÄÑÂð£¿Ëùν·ºÐÍ¿ª·


Ïà¹ØÎĵµ£º

C×Ö·û´®²Ù×÷º¯Êý


1. ×Ö·û´®²Ù×÷º¯Êý
³ÌÐò°´¹¦ÄÜ»®·Ö¿É·ÖΪÊýÖµÔËËã¡¢·ûºÅ´¦ÀíºÍI/O²Ù×÷ÈýÀ࣬·ûºÅ´¦Àí³ÌÐòÕ¼Ï൱´óµÄ±ÈÀý£¬·ûºÅ´¦Àí³ÌÐòÎÞ´¦²»ÔÚ£¬±àÒëÆ÷¡¢ä¯ÀÀÆ÷¡¢OfficeÌ×¼þµÈ³ÌÐòµÄÖ÷Òª¹¦Äܶ¼ÊÇ·ûºÅ´¦Àí¡£ÎÞÂ۶ิÔӵķûºÅ´¦Àí¶¼ÊÇÓɸ÷ÖÖ»ù±¾µÄ×Ö·û´®²Ù×÷×é³ÉµÄ£¬±¾½Ú½éÉÜÈçºÎÓÃCÓïÑԵĿ⺯Êý×ö×Ö·û´®³õʼ»¯¡¢È¡³¤¶È¡¢¿½±´¡¢Á¬½ ......

c°æµÄ»Øµ÷º¯ÊýÓëc++°æµÄÐ麯Êý

CÓïÑԵĻص÷º¯Êý˼Ïë´úÂ룺
#include <stdio.h>
void *max(void *base, unsigned int nmemb, unsigned int size,
    int (*compar)(const void *, const void *))
{
    int i;
    void* max_data = base;
    char* tmp = base;
 &nbs ......

C __attribute__ Ïê½â


< type="text/javascript">
Ô­ÎÄÇë¼ûÕâÀï
¡£
GNU
CµÄÒ»´óÌØÉ«£¨È´²»±»³õѧÕßËùÖª£©¾ÍÊÇ__attribute__»úÖÆ¡£__attribute__¿ÉÒÔÉèÖú¯ÊýÊôÐÔ£¨Function    
Attribute£©¡¢±äÁ¿ÊôÐÔ£¨Variable Attribute£©ºÍÀàÐÍÊôÐÔ£¨Type Attribute£©¡£
__attribute__ÊéдÌØÕ÷ÊÇ£º__attribute__Ç°ºó¶¼ÓÐÁ½¸öÏ»® ......

The C Programming Language ¾­µä´úÂë any(s1,s2)

/*
* Exercise 2-5 Page 48
*
* Write the function any(s1,s2), which returns the first location
* in the string s1 where any character from the string s2 occurs,
* or -1 if s1 contains no characters from s2. (The standard library
* function strpbrk does the same job but returns a pointer t ......

C++ϵÄXML·ÖÎö¹¤¾ßCMarkup

1¡¢³õʼ»¯
Load µ¼ÈëÒ»¸öXMLÎļþµ½CMarkupµÄ¶ÔÏóÖУ¬²¢¶ÔËü½øÐнâÎö¡£ÀàËÆC#µÄLoad¡£
SetDoc ´Ó×Ö·û´®Öе¼ÈëXMLÊý¾Ý£¬²¢¶ÔËü½âÎö¡£ÀàËÆC#µÄLoadXml¡£
2¡¢Êä³ö
Save ½«XMLÊý¾ÝдÈëÎļþÖС£ÀàËÆC#µÄSave¡£
GetDoc ½«Õû¸öXMLÊý¾ÝÎĵµ×÷Ϊ×Ö·û´®·µ»Ø¡£
3¡¢¸Ä±äµ±Ç°Î»ÖÃ
FindElem ¶¨Î»µ½ÏÂÒ»¸öÔªËØ£¬¿ÉÄܺÍÒ»¸ö±êÇ©Ãû»ò· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ