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

CÎļþ¶Áд

#include <stdio.h>
#define SIZE 50
int main()
{
FILE *fps=NULL;
fps=fopen("tests.txt","r");
FILE *fpd=NULL;
fpd=fopen("testd.txt","wt+");
fseek(fpd,0,SEEK_END);
char buffer[SIZE];
while (fps || fpd)
{
int t=fread(buffer,sizeof(char),SIZE,fps);
if (t==0)
{
break;
}

for (int i=0;i<t;++i)
{
printf("%s",buffer);
}
fwrite(buffer,sizeof(char),t,fpd);
}
printf("File operater end!\n");


Ïà¹ØÎĵµ£º

SQLite C/C++½Ó¿Ú½éÉÜ

ÕâƪÎÄÕÂÊÇʹÓÃSQLite C/C++½Ó¿ÚµÄÒ»¸ö¸ÅÒª½éÉܺÍÈëÃÅÖ¸ÄÏ¡£
ÓÉÓÚÔçÆÚµÄSQLiteÖ»Ö§³Ö5¸öC/C++½Ó¿Ú£¬Òò¶ø·Ç³£ÈÝÒ×ѧϰºÍʹÓ㬵«ÊÇËæ×ÅSQLite¹¦ÄܵÄÔöÇ¿£¬ÐµÄC/C++½Ó¿Ú
²»¶ÏµÄÔö¼Ó½øÀ´£¬µ½ÏÖÔÚÓг¬¹ý150¸ö²»Í¬µÄAPI½Ó¿Ú¡£ÕâÍùÍùʹ³õѧÕßÍû¶øÈ´²½¡£ÐÒÔ˵ÄÊÇ£¬´ó¶àÊýSQLiteÖеÄC/C++½Ó¿ÚÊÇרÓõģ¬Òò¶øºÜÉÙ±»
ʹÓõ½¡£¾¡¹Ü ......

°ÑÆäËûC/C++±àÒëÆ÷¼¯³Éµ½VC2005ÖÐ

Òý×Ô¡¡http://www.wangchao.net.cn/bbsdetail_625196.html
¡¡¡¡ÔÚVisual C++ 2005ÖУ¬ÈçºÎµ÷ÓÃÆäËü±àÒëÆ÷±àÒëcppÎļþÄØ? »»¾ä»°Ëµ£¬ÈçºÎ°ÑÆäËü±àÒëÆ÷¼¯³Éµ½VC2005µÄIDEÖÐÄØ?
¡¡¡¡ÏóICCÕâÑùµÄ±àÒëÆ÷°²×°Ö®ºó»á×Ô¶¯¼¯³É½øÀ´£¬Òª¼¯³ÉÆäËû±àÒëÆ÷ÄÇ»¹µÃ×Ô¼º¶¯ÊÖ¡£ÏÂÃæ½éÉÜÒ»ÖÖ¼òµ¥¡¢Ç³²ãµÄ“¼¯³É”·½·¨¡£
¡¡¡¡ÄãҲР......

CÄ£ÄâÃæÏò¶ÔÏóµÄ·½·¨

CÄ£ÄâÃæÏò¶ÔÏóµÄ·½·¨
³éÏóÊý¾ÝÀàÐÍ
Èÿͻ§Ê¹ÓÃÖ¸ÏòûÓй«¿ª¶¨Òå (Ò²Ðí»¹Òþ²ØÔÚÀàÐͶ¨Òåºó±ß) µÄ½á¹¹ÀàÐ͵ÄÖ¸ÕëÊÇÒ»¸öºÃ°ì·¨¡£Ö»Òª²»·ÃÎʽṹ³ÉÔ±, ÉùÃ÷ºÍʹÓà “ÄäÃû” ½á¹¹Ö¸Õë (²»ÍêÈ«½á¹¹ÀàÐÍÖ¸Õë)ÊǺϷ¨µÄ¡£ÕâÒ²ÊÇʹÓóéÏóÊý¾ÝÀàÐ͵ÄÔ­Òò¡£
ÀàµÄ·½·¨
°Ñº¯ÊýÖ¸ÕëÖ±½Ó¼ÓÈëµ½½á¹¹ÖС£
¼Ì³Ð
Äã¿ÉÒÔʹÓø÷ÖÖ ......

linux ÏÂc ³ÌÐò ¶Î´íÎó ·ÖÎö


linux ÏÂc ³ÌÐò ¶Î´íÎó ·ÖÎö
(2008-12-31 16:50:57)
var $tag='it';
var $tag_code='2cec03ae0a5b0d224bb35c9b79dd54c7';
±êÇ©£ºit
 
·ÖÀࣺC/C++
fopen("/var/spool/cron/tmp","w+");
/////////////////////////////////////////
#include <sys/types.h>
......

cÖеÄÒ°Ö¸Õë

¶ÔÒ°Ö¸ÕëµÄһЩÈÏʶ£º
 
ÎÒ¶ÔÒ°Ö¸ÕëµÄÈÏʶ£¬ÎÒ¾õµÃÒ°Ö¸Õë¾ÍÊÇÒ»¸öÖ¸Õë±äÁ¿ËüÀïÃæµÄÖµÊDz»È·¶¨µÄ£¬ÕâÑùµ±Äã²Ù×÷Õâ¸ö±äÁ¿ËùÖ¸¶¨µÄÄÚ´æµØÖ·µÄʱºò£¬¾Í»á´øÀ´Ò»Ð©²»È·¶¨µÄÒòËØ£¬ÄÃÒ»¸ö±È½Ï³£¼ûµÄÎÊÌâÀ´¾Ù¸öÀý×ÓÀ´ËµÃ÷һϣº
¿´ÏÂÃæ´úÂ룺
 
int a = 10;
int *p;
*p = a;

1.      ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ