C ³ÌÐòÎÊÌ⣨ËÄ£© - C/C++ / CÓïÑÔ
#include "stdio.h" int main() { char *ch(char *, char *); char str1[]="I am glad to meet you!"; char str2[]="Welcom to study C!"; printf("%s", ch(str1, str2)); return 0; } char *ch(char *str1, char *str2) { char *p; p=str2; if(*str2 == NULL) return NULL; // exit(-1); do { *str2=*str1; str1++; str2++; }while(*str1!=NULL); return(p); } ÎÊÌâÒ»£ºÎªÊ²Ã´Êä³öÊÇ£ºI am glad to meet you!am glad to meet you! ¼´£ºÎªÊ²Ã´str2[]»á±»¸Ä³ÉI am glad to meet you!am glad to meet you!ÄØ£¿ ÎÒµ¥²½µ÷ÊÔʱ¾õµÃstr2[] = I am glad to meet you!ô£¿ ÎÊÌâ¶þ£ºÔÚchar* ch(char *str1, char *str2)º¯ÊýÖУ¬pÊǾֲ¿Ö¸Õ룬×îºóÓÃreturn(p);À´·µ»ØÖ¸ÕëµØÖ·ÊÇ·ñ ²»Ì«°²È«ÄØ£¿Èç¹ûÊǵĻ°£¬ÎÒ¿ÉÒÔÔõô¸Ä»òÕßÔõô×ö±È½ÏºÃ£¿ лл£¡£¡£¡
ûÊ£¬pµÄµØַʵ¼ÊÉÏÊÇstr2£¬¸Ä¶¯str2¾ÍÊǸÄp£¬ËùÒÔÄÜ·µ»Ø£¬¶øÇÒp»á¸ú×Åstr2µÄ¸Ä¶¯×ß *str2 = '\0'; ÉÙÁËÕâ¸ö, ¹ÛÍûÖРû¶àÉÙ·ÖÁËÒýÓà #include <stdio.h> int main() { char *ch(char *, char *); char str1[]="I am glad to meet you!";
Ïà¹ØÎÊ´ð£º
×î½üͻȻÏë×Ô¼ºÀ´ÊµÏÖÒ»¸öÎå×ÓÆå³ÌÐò,µ«²»ÖªµÀÔõô¿ªÊ¼,×Ô¼ºÒ²Ã»Ñ§»Í¼Ðκ¯Êý,ÄÜÔÚ¿ØÖÆ̨ÏÂÖ±½ÓдÂð>>>????? ¿ØÖÆ̨£¿±ÈͼÐνçÃæ¸üÂé·³¡£ http://search.download.csdn.net/search/%E4%BA%94%E5%AD%90% ......
±àÒëÆ÷£ºC-Free4 mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓᣠ×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£ Íü¸ßÊÖÖ¸µãÒ»¶ ......
ÓÃc/c++¶¨Î»É¾³ýÒ»ÐеÄÎÊÌâ¡£ ÎÊÌâ±³¾°£º ËùÐèÊý¾ÝÏ൱´ó¡£aÓëbÎļþ¾ùΪһ×éÎļþ£¨a1£¬a2¡£¬b1£¬b2¡£©£¬aÎļþÓÐ×î´óÊý¾ÝÐÐÊý£¨Èç5000£©£¬ÒÔÐеÄÐÎʽ£¬´ÓaÎļþÖжÁÈ¡Êý¾Ý£¬½«aÖв»ÄÜ´¦ÀíµÄÊý¾Ý·ÅÔÚbÎ ......
ÎÊÌâÒ»£º ÔÚ¶ÔÆëΪ4µÄÇé¿öÏ struct BBB { long num£» char *name; short int data; char ha; short ba[5]; }*p; p=0x1000000; p+0x200=____; (Ulong)p+0x200=____; (char*)p+0x200=____; ¼ÙÉèÔÚ32λC ......
<table width="100%" border="1" cellpadding="0" cellspacing="0"> <c:forEach items="${quaeres}" var="q"> ......