½ÓÊÕ¼üÅÌÊäÈën¸ö×î´ó³¤¶È100µÄ×Ö·û´®
char ** p, *tmp;
int i,n;
clrscr();
scanf("%d",&n);
getchar();/*Ç建´æ*/
for(i=0;i<n;i++)
gets(*(p+i));
¶¨ÒåÁËpºó£¬Ã»Óе÷ÓÃmalloc·ÖÅäÄڴ棬ҲûÓÐÓ°Ïì³ÌÐòÔËÐС£
ÎÒÏëÎÊ£¬ÕâÑùÓÿÉÒÔô£¿»á²»»á°ÑÄÚ´æд»µ£¿»òÕßÓÐÄÚ´æй©µÈÆäËûÎÊÌ⣿
Òª·ÖÅäÄÚ´æ²»Òª¿¿ÈËÆ·¡£ÄãÕâ´ÎûÎÊÌ⣬²»±£Ö¤ÄãÏ´λ¹ÓÐÕâôºÃÔËÆø¡£
pûÓÐÖ¸ÏòºÏ·¨Äڴ棬ÊÇÒ»¸öÒ°Ö¸Õ룬¶ÔÒ°Ö¸Õë²Ù×÷£¬ÆÆ»µÁËÄڴ棬ºó¹û±È½ÏÑÏÖØ£¬¿ÉÄÜ»á±ÀÀ££¬¿ÉÄÜÊǼ«ÆäÒþ²ØµÄBUG¡£
²»ÐèÒª¸øËü±¾Éí·ÖÅäÄڴ棬µ«ÊÇËüÖ¸ÏòµÄÓ¦¸ÃÊÇÒѾ·ÖÅäºÃµÄÄÚ´æ
Â¥Ö÷ÓõÄÊÇtc°É£¬ÎÒ¸Õ¿ªÊ¼ÓÃËüµÄʱºòҲûעÒâ¹ý¸øÖ¸Õë·ÖÅäÄÚ´æ·½ÃæµÄ¶«Î÷¡£ºó¾¹ý±ðÈ˵ÄÖ¸µ¼²Å¸Ä¹ýÀ´¡£
ȷʵÔÚtcϲ»»á±¨´í£¬Ä㿽±´µ½vsϾͻá³öÎÊÌâÁË.
Ò°Ö¸ÕëÊǺֲܿÀ
¿ÉÊÇÎÒ¸ÄÔõô·ÖÄØ£¿
p=(char *)malloc(100*n*sizeof(char));
ÊÇÕâÑù·Öô£¿
Ïà¹ØÎÊ´ð£º
ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£
²»»á.
ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ
ËÑË÷Ï£ºjni ......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......
ÈçÌâ:c ÓïÑÔÀ︡µãÏà³Ë ΪʲôСÊýȫΪ0ÁË
float x=8266.206055;
float y=7226.922363;
float z;
z=x*y;
z=59739228.000000;
ΪʲôµÃµ½µÄZ СÊýµãºóÃæȫΪ0ÁË
ºÇºÇ£¬³¬³ö¸¡µãÄܱíʾ·¶Î§ÁË¡£
Âé·³ÓÐÈËÖªµÀ ......