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

C/C++ÖÐcharÐÍÖ¸ÕëÎÊÌ⠸߷ÖÏàÔù - C/C++ / C++ ÓïÑÔ

ÎÒÏ뿪±ÙÒ»¸ö10000´óµÄcharÐÍÖ¸Õ룬ÇëÎÊÈçºÎŪ£¿charÐ͵ÄÖ¸Õë²»ÄÜ¿ª±ÙÌ«´óѽ£¬Ôõô²ÅÄÜÎÞÇî´ó£¿£¿£¿
ÒòΪÎÒÏë´ÓÒ»¸öÎļþÖжÁÈ¡Êý¾Ý£¬ÓÃcharÐÍÖ¸Õë±£´æ
ÓÃmalloc·ÖÅäÒ»¸öÄÇô´óµÄ¿Õ¼ä°É
ÎÞÇî´ó¹À¼ÆÊDz»ÐеİÉ

ÆäʵָÕë¾ÍÄǸö´ó£¬4¸ö×Ö½Ú£¬¹Ø¼üÊÇËûÖ´ÐеÄÊý×éÓжà´ó¡£¡£¡£


¿ÉÒÔµÄ
ÀíÂÛÉÏ¿ÉÒÔ·ÖÅä4G£¬²»¹ýwindowsϺÃÏñÖ»ÄÜ2G°É

Óöà´ó£¬¾Ímalloc·ÖÅä¶à´ó£¬²»¿ÉÄÜÎÞÇî´ó£¬¾ÍËãÎļþ´ó£¬Ò²²»ÐèÒªÕû¸öÎļþ¶ÁÈëÄÚ´æ

ÔÚ¶ÑÉÏnewÒ»¸ö´óµÄÊý×é°É ÎÞÇî´óÊDz»¿ÉÄÜµÄ 32 ,64λϵͳ ÀíÂÛÉÏ×î´ó·Ö±ðÖ§³Ö2^32£¬2^64×Ö½ÚÄÚ´æ

char* p = new char[10000]; 
Ôõô²ÅÄÜÎÞÇî´ó£¿£¿£¿ ÏÈ°ÑÄãµÄÄÚ´æŪµ½ÎÞÇî´óÔÙ˵



C/C++ code:
ÎÒÏ뿪±ÙÒ»¸ö10000´óµÄcharÐÍÖ¸Õ룬ÇëÎÊÈçºÎŪ

c: char** p = (char**) malloc(sizeof(char*)* 10000);
c++: char** p = new char*[10000];


ÎÞÇî´ó...........
Äã²»ÅÂÄãµÄϵͳ±Àµô°¡£¿£¿£¿£¿

¶ÁÎļþô
ÓÃÄÚ´æÓ³ÉäÎļþ°É


Ïà¹ØÎÊ´ð£º

visual c++2008²»ÄܱàÒëC³ÌÐòÂð - C/C++ / CÓïÑÔ

visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©

¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ

ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......

c# Winform ´¥ÃþÆÁ³ÌÐò - .NET¼¼Êõ / C#

¹«Ë¾¿ª·¢Ò»¸ö´¥ÃþÆÁ³ÌÐò£¬ÎÒ¸ºÔðµÄÒ»¿é£¬ÊµÏÖÕâÑùÒ»¸ö¹¦ÄÜ£¬µ±Êó±êµã»÷´°¿ÚÖÐͼƬ£¨Ò»ÕÅͼ·Ö³É¼¸²¿·Ö£©µÄÆäÖÐÒ»²¿·Öʱ£¬½«Õⲿ·ÖͼƬ½ØÈ¡³öÀ´£¬µ¯³öеĴ°¿Ú£¬½«½ØÈ¡³öµÄͼƬÏÔʾ³öÀ´¡£ÎÒʹÓÃRectangeÀà¿ØÖÆÁË·µ»Ø£¬ ......

¸ÕѧÍêCµÄ»ù´¡£¬ÇóÏÂÒ»²½ - C/C++ / CÓïÑÔ

ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë 
Äã²»Àí½âÖ ......

ÓйØAccessÊý¾Ý¿â´æÈ¡µÄÎÊÌâ - C++ Builder / »ù´¡Àà

ÈçºÎ½«Ò»¸öListBoxÖеÄÊý¾Ý´æÔÚÊý¾Ý¿âÖеÄÒ»¸ö×Ö¶ÎÏÂÃ棬²¢ÇÒÿÌõ¼Ç¼µÄ×Ö·û´®¸öÊý²»Ò»¶¨ ÒÔ¼°ÈçºÎ´ÓÊý¾Ý¿âÖжÁÈ¡¸ÃListBoxÖеÄËùÓмǼ
C/C++ code:

//´æÈëÊý¾Ý¿â
void __fastcall TForm1::Button5Click(TO ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ