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

ARM LINUXÉÏÓÃCдÎļþµÄÎÊÌâ

C/C++ code:

char Time="2009-9-23";
FILE *fpOut=fopen("1.txt","w+");
if(fpOut==NULL)
return ;

fwrite(Time,strlen(Time),1,fpOut);
sprintf(fpOut,"%s",Time);

fclose(fpOut);



ΪʲôдµÄÎļþΪ¿ÕµÄÄØ£¬ÔÚARM ÉÏ ÄÇλ֪µÀ°ïÏÂ棬ллÁË 
TimeµÄÀàÐͲ»¶Ô
char * Time="2009-9-23";
»òÕß
char Time[] ="2009-9-23";


ÕâÊÇʲôÓ÷¨£¿
sprintf(fpOut,"%s",Time);
Â¥Ö÷ÊÇÏëÓà fprintf °É¡£

ͬ¥ÉÏ

C/C++ code:

char Time[]="2009-9-23";//mark
FILE *fpOut=fopen("1.txt","w+");
if(fpOut==NULL)
return ;

fwrite(Time,1,strlen(Time),fpOut);

fclose(fpOut);


ÒýÓÃ
TimeµÄÀàÐͲ»¶Ô
char* Time="2009-9-23";
»òÕß
char Time[] ="2009-9-23";



Â¥Ö÷Ì«Âí»¢ÁË

ÊǵÄ
ÐÞ¸Ä
char* Time="2009-9-23";
fprintf(fpOut,"%s",Time);

ÔÚARM Àï ûÓÃ
ÄÇλÅöµ½¹ýÂð


Ïà¹ØÎÊ´ð£º

Ò»¸ö¼òµ¥µÄcÓÎÏ·

13¸öÈËΧ³ÉһȦ£¬´ÓµÚÒ»¸öÈË¿ªÊ¼Ë³Ðò±¨ºÅ1£¬2£¬3¡£·²±¨µ½3ÕßÍ˳öȦ×Ó£¬ÕÒ³ö×îºóÁôÔÚȦ×ÓÖеÄÈËÔ­À´µÄÐòºÅ
½á¹ûÓ¦¸ÃÊÇ13 ¿ÉÎҵijÌÐòµÄ½á¹ûÊÇ11 Ï£ÍûºÃÐÄÈË°ï¸ÄÒ»ÏÂ
#include <stdio.h>
#include < ......

ѧϰÌÖÂÛ C/C++ QQȺ - C/C++ / ·Ç¼¼ÊõÇø

QQȺ 29152388
ÓÑÇéUP

°ï¶¥

up

°ïup

up Ö§³Ö£¡

up jf

...ÄѵÀÓзÖ..?

up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£

Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ

¼ÓÁË¡£

¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......

Á½¸öCÎļþµÄÎÊÌâ

ÒÔÇ°ÔÚVCÀïÃ潨һ¸ö¹¤³Ì£¬¶¼Ö»ÓÃÒ»¸ö .c Îļþ£¬×òÌìÔÚÒ»¸ö¹¤³ÌÀïÓÃÁËÁ½¸ö .cÎļþÁË£¬Óöµ½ÎÊÌâÁË£¬Çë´ó¼ÒÖ¸µã¡£±ÈÈ磺
File1.c Fil ......

´ó¼Ò¾õµÃ C Primer Plus Õâ±¾ÊéÔõôÑùÄØ£¿

ÓÃÕâ±¾ÊéÈëÃÅÔõôÑùÄØ  ¸úÌ·ºÆÇ¿µÄÏà±ÈÈçºÎ£¿ лл
ÎÒ°ÑÕâ±¾¿´Á˼¸Æª£¬È·ÊµºÜºÃµÄÊé¡£¾Í²»ÒªÄÃËü¸ú Ì· µÄÊé±ÈÁË£¬ Ì· µÄÊéÒªÕÕ¹ËÈ«¹ú¶ÁÕß¡£

²»¿ÉͬÈÕ¶øÓï

Ò»¸öÊǹúÍâµÄ£¬Ò»¸öÊǹúÄÚµÄ

ѧÍêc primer ......

Çó½âANSI/ISO CÖеÄÒ»¾ä»°

ANSI/ISO C ±ê×¼ÕâÑùÃèÊö:

ÔÚÉÏÒ»¸öºÍÏÂÒ»¸öÐòÁеãÖ®¼ä, Ò»¸ö¶ÔÏóËù±£´æµÄÖµÖÁ¶àÖ»Äܱ»±í

´ïʽµÄ¼ÆËãÐÞ¸ÄÒ»´Î¡£¶øÇÒÇ°Ò»¸öÖµÖ»ÄÜÓÃÓÚ¾ö¶¨½«Òª±£´æµÄÖµ¡£

ʵÔÚ²»Àí½âÕâ¾ä»°£¬Çë´ó¼ÒÒ»Æð˵˵£¿£¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ