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);
Â¥Ö÷Ì«Âí»¢ÁË
ÊǵÄ
ÐÞ¸Ä
char* Time="2009-9-23";
fprintf(fpOut,"%s",Time);
ÔÚARM Àï ûÓÃ
ÄÇλÅöµ½¹ýÂð
Ïà¹ØÎÊ´ð£º
13¸öÈËΧ³ÉһȦ£¬´ÓµÚÒ»¸öÈË¿ªÊ¼Ë³Ðò±¨ºÅ1£¬2£¬3¡£·²±¨µ½3ÕßÍ˳öȦ×Ó£¬ÕÒ³ö×îºóÁôÔÚȦ×ÓÖеÄÈËÔÀ´µÄÐòºÅ
½á¹ûÓ¦¸ÃÊÇ13 ¿ÉÎҵijÌÐòµÄ½á¹ûÊÇ11 Ï£ÍûºÃÐÄÈË°ï¸ÄÒ»ÏÂ
#include <stdio.h>
#include < ......
QQȺ 29152388
ÓÑÇéUP
°ï¶¥
up
°ïup
up Ö§³Ö£¡
up jf
...ÄѵÀÓзÖ..?
up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£
Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ
¼ÓÁË¡£
¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......
ÒÔÇ°ÔÚVCÀïÃ潨һ¸ö¹¤³Ì£¬¶¼Ö»ÓÃÒ»¸ö .c Îļþ£¬×òÌìÔÚÒ»¸ö¹¤³ÌÀïÓÃÁËÁ½¸ö .cÎļþÁË£¬Óöµ½ÎÊÌâÁË£¬Çë´ó¼ÒÖ¸µã¡£±ÈÈ磺
File1.c Fil ......
ÓÃÕâ±¾ÊéÈëÃÅÔõôÑùÄØ ¸úÌ·ºÆÇ¿µÄÏà±ÈÈçºÎ£¿ лл
ÎÒ°ÑÕâ±¾¿´Á˼¸Æª£¬È·ÊµºÜºÃµÄÊé¡£¾Í²»ÒªÄÃËü¸ú Ì· µÄÊé±ÈÁË£¬ Ì· µÄÊéÒªÕÕ¹ËÈ«¹ú¶ÁÕß¡£
²»¿ÉͬÈÕ¶øÓï
Ò»¸öÊǹúÍâµÄ£¬Ò»¸öÊǹúÄÚµÄ
ѧÍêc primer ......
ANSI/ISO C ±ê×¼ÕâÑùÃèÊö:
ÔÚÉÏÒ»¸öºÍÏÂÒ»¸öÐòÁеãÖ®¼ä, Ò»¸ö¶ÔÏóËù±£´æµÄÖµÖÁ¶àÖ»Äܱ»±í
´ïʽµÄ¼ÆËãÐÞ¸ÄÒ»´Î¡£¶øÇÒÇ°Ò»¸öÖµÖ»ÄÜÓÃÓÚ¾ö¶¨½«Òª±£´æµÄÖµ¡£
ʵÔÚ²»Àí½âÕâ¾ä»°£¬Çë´ó¼ÒÒ»Æð˵˵£¿£¿ ......