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

c/c++ÖÐÄÚ´æÇøÓò»®·Ö´ó×ܽá

Ò». ÔÚcÖзÖΪÕ⼸¸ö´æ´¢Çø
1.Õ» - ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å
2.¶Ñ - Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬Èô³ÌÐòÔ±²»ÊÍ·Å£¬³ÌÐò½áÊøʱ¿ÉÄÜÓÉOS»ØÊÕ
3.È«¾ÖÇø£¨¾²Ì¬Çø£©£¬È«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿µÄ´æ´¢ÊÇ·ÅÔÚÒ»¿éµÄ£¬³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿ÔÚÒ»¿éÇøÓò£¬Î´³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍδ³õʼ»¯µÄ¾²Ì¬±äÁ¿ÔÚÏàÁÚµÄÁíÒ»¿éÇøÓò¡£- ³ÌÐò½áÊøÊÍ·Å
4.ÁíÍ⻹ÓÐÒ»¸öרÃŷų£Á¿µÄµØ·½¡£- ³ÌÐò½áÊøÊÍ·Å
                                                                                                                                             
ÔÚº¯ÊýÌåÖж¨ÒåµÄ±äÁ¿Í¨³£ÊÇÔÚÕ»ÉÏ£¬ÓÃmalloc, calloc, reallocµÈ·ÖÅäÄÚ´æµÄº¯Êý·ÖÅäµÃµ½µÄ¾ÍÊÇÔÚ¶ÑÉÏ¡£ÔÚËùÓк¯ÊýÌåÍⶨÒåµÄÊÇÈ«¾ÖÁ¿£¬¼ÓÁËstaticÐÞÊηûºó²»¹ÜÔÚÄÄÀﶼ´æ·ÅÔÚÈ«¾ÖÇø£¨¾²Ì¬Çø£©,ÔÚËùÓк¯ÊýÌåÍⶨÒåµÄstatic±äÁ¿±íʾÔÚ¸ÃÎļþÖÐÓÐЧ£¬²»ÄÜexternµ½±ðµÄÎļþÓã¬ÔÚº¯ÊýÌåÄÚ¶¨ÒåµÄstatic±íʾֻÔڸú¯ÊýÌåÄÚÓÐЧ¡£ÁíÍ⣬º¯ÊýÖеÄ"adgfdf"ÕâÑùµÄ×Ö·û´®´æ·ÅÔÚ³£Á¿Çø¡£±ÈÈ磺
int a = 0; //È«¾Ö³õʼ»¯Çø
char *p1; //È«¾Öδ³õʼ»¯Çø
void main()
{
    int b; //Õ»
    char s[] = "abc"; //Õ»
    char *p2; //Õ»
    char *p3 = "123456"; //123456{post.content}ÔÚ³£Á¿Çø£¬p3ÔÚÕ»ÉÏ
    static int c = 0; //È«¾Ö£¨¾²Ì¬£©³õʼ»¯Çø
    p1 = (char *)malloc(10); //·ÖÅäµÃÀ´µÃ10×Ö½ÚµÄÇøÓòÔÚ¶ÑÇø
    p2 = (char *)malloc(20); //·ÖÅäµÃ


Ïà¹ØÎĵµ£º

ÓÃCдµÄ3DÃÔ¹¬

          Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
       ´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸еģ¬»î»î»î£¡
         &n ......

¡¾C/C++Ïà¹Ø֪ʶ¡¿ATOMÓÅ»¯Ö®GCCƪ

×÷Õߣº Yanqing Wang (Intel)
ÔÚATOM³ÌÐòÓÅ»¯ÀûÆ÷ÖУ¬±ÊÕß×ÅÖؽ²ÊöÁËÈçºÎʹÓÃIntel Compiler¶ÔATOMÓ¦ÓóÌÐòµÄÓÅ»¯£¬ºÜ¶àÍøÓѶ¼±È½Ï¸ÐÐËȤ²¢ÏëÖªµÀÔÚGCC±àÒëÆ÷ÏÂÈçºÎÓÅ»¯ATOM¡£½è´Ë£¬±¾ÎĽ«ÖصãÓÚÌÖÂÛÈçºÎʹATOMÓ¦ÓóÌÐòÔÚGCC±àÒëÆ÷ÏÂÓÅ»¯¡£
ϸÐĵÄÍøÓÑ¿ÉÄÜ·¢ÏÖGCC4.4.2ÊÖ²áûÓн²ÊöÈçºÎÔÚATOMƽ̨ÓÅ»¯£¬ËùÒÔҪͨ¹ýGCC¶ÔAT ......

ÓÃcд¸ö¿ØÖÆ̨ϵĽø¶ÈÌõ

×î½üÏëд¸ö¿ØÖÆ̨ϵĽø¶ÈÌõ£¬¿ÉÒÔÖªµÀ³ÌÐòµÄ½øÕ¹Çé¿ö£¬²»ÓÃŪ¸ö½çÃæ¡£ÆäÖÐ×îÖ÷ÒªµÄ¾ÍÊÇ“\b“×Ö·û£¬ËüµÄasciiÂëÖµÊÇ10£¬ÊÇÍ˸ñµÄÒâ˼¡£
ÏÖ°Ñ´úÂëÌùÉÏ£¬ÈçÏ£¨¿ÉÒÔÔÚvcºÍlinux±àÒ룩£º
progress.c
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#define mysleep(n) Sleep(n*1000)
......

¹ØÓÚB/SºÍC/S¼Ü¹¹µÄ½éÉÜ

Ò»¡¢Ê²Ã´ÊÇC/SºÍB/S
µÚÒ»¡¢Ê²Ã´ÊÇC/S½á¹¹¡£C/S
£¨Client/Server£©½á¹¹£¬¼´´ó¼ÒÊìÖªµÄ¿Í»§»úºÍ·þÎñÆ÷½á¹¹¡£ËüÊÇÈí¼þϵͳÌåϵ½á¹¹£¬Í¨¹ýËü¿ÉÒÔ³ä·ÖÀûÓÃÁ½¶ËÓ²¼þ»·¾³µÄÓÅÊÆ£¬½«ÈÎÎñºÏÀí·ÖÅäµ½
Client¶ËºÍServer¶ËÀ´ÊµÏÖ£¬½µµÍÁËϵͳµÄͨѶ¿ªÏú¡£Ä¿Ç°´ó¶àÊýÓ¦ÓÃÈí¼þϵͳ¶¼ÊÇClient/ServerÐÎʽµÄÁ½²ã½á¹¹£¬ÓÉÓÚÏÖÔÚµÄÈí¼þÓ¦
......

Visual C++ÖеÄCÔËÐÐʱ¿âdzÎö

1.¸ÅÂÛ
¡¡ÔËÐÐʱ¿âÊdzÌÐòÔÚÔËÐÐʱËùÐèÒªµÄ¿âÎļþ£¬Í¨³£ÔËÐÐʱ¿âÊÇÒÔLIB»òDLLÐÎʽÌṩµÄ¡£CÔËÐÐʱ¿âµ®ÉúÓÚ20ÊÀ¼Í70Äê´ú£¬µ±Ê±µÄ³ÌÐòÊÀ½ç»¹ºÜµ¥´¿£¬Ó¦ÓóÌÐò¶¼Êǵ¥Ï̵߳ģ¬¶àÈÎÎñ»ò¶àÏ̻߳úÖÆÔÚ´Ëʱ»¹ÊôÓÚйÛÄî¡£ËùÒÔÕâ¸öʱÆÚµÄCÔËÐÐʱ¿â¶¼Êǵ¥Ï̵߳ġ£
Ëæ×ŲÙ×÷ϵͳ¶àÏ̼߳¼ÊõµÄ·¢Õ¹£¬×î³õµÄCÔËÐÐʱ¿âÎÞ·¨Âú×ã³ÌÐòµÄÐèÇó£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ