Ìý±ðÈË˵CûÓÐstringÀàÐÍ£¬ÓÚÊÇ×Ô¼ºÐ´Á˸öÀý×Ó²âÊÔһϣ¬·¢ÏÖ±àÒ벻ͨ¹ý¡£Èç¹ûCûÓÐstringµÄ»°CÊÇÈçºÎʵÏÖÊä³ö×Ö·û´®µÄ£¿
C/C++ code:
#include <stdio.h>
#include <string>
int main()
{
string str="abc";
}
CµÄ´®ÊÇÓÃchar *¶¨ÒåµÄ£¬
C/C++ code:
#include <stdio.h>
#include <string.h>
int main()
{ char *str="abc"; }
CÖÐûÓÐ×Ö·û´®ÀàÐ͵쬲»¹ý¿ÉÒÔͨ¹ý×Ö·ûÐÍÊý×éÀ´Ìæ´ú×Ö·û´®ÀàÐÍ¡£
ûÓС£
char*£¬Ö¸Õ룬ֱµ½×îºóÒ»¸öµ¥ÔªÎªNULL¡£
¾ßÌå¿ÉÒÔ¿´C±ê×¼¿â <string.h>
char ch[3]="asd";
printf("%s\n",ch);
C/C++ code:
#include <stdio.h>
#include <string.h>
int main(void)
{
char *str;
str="abc";
printf("%s\n",str);
return 0;
}
Ïà¹ØÎÊ´ð£º
ÔÚ²éѯºó½«²éѯ³öÀ´µÄÖµ¸³¸ø¸÷ÊäÈë¿ò
<c:if test="${not empty dataValue}">
fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......
QQȺ 29152388
ÓÑÇéUP
°ï¶¥
up
°ïup
up Ö§³Ö£¡
up jf
...ÄѵÀÓзÖ..?
up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£
Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ
¼ÓÁË¡£
¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......
±àÒëÆÕͨµÄcûÎÊÌâ°¡£¬µ«±àÒëjavahÉú³ÉµÄ¾Í±¨´í£º
gcc -O0 -g3 -Wall -c -fmessage-length=0 -oHelloWorld.o ..\HelloWorld.c
gcc -otest.exe HelloWorld.o
d:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../. ......
#include <stdio.h>
#include <graphics.h>
void main()
{
int x0,y0,x1,y1,driver,mode,i;
driver=VGA;
mode=VGAHI;
initgraph(&driver,&mode,&qu ......
×î½üͻȻÏë×Ô¼ºÀ´ÊµÏÖÒ»¸öÎå×ÓÆå³ÌÐò,µ«²»ÖªµÀÔõô¿ªÊ¼,×Ô¼ºÒ²Ã»Ñ§»Í¼Ðκ¯Êý,ÄÜÔÚ¿ØÖÆÌ¨ÏÂÖ±½ÓдÂð>>>?????
¿ØÖÆÌ¨£¿±ÈͼÐνçÃæ¸üÂé·³¡£
http://search.download.csdn.net/search/%E4%BA%94%E5%AD%90% ......