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

C ÓïÑÔ É¾³ýÎļþÖеÄÒ»ÐÐ - C/C++ / CÓïÑÔ

±ÈÈçÓиöÎļþÄÚÈÝ
01:aaaaaaaaaa
02:bbbbbbbbb
03:cccccccccccc
04:ddddddddddd
05:eeeeeeeeee


Ôõô¸ù¾Ý03Õâ¸öÐкÅÀ´É¾³ýÄÇÒ»ÐÐÄØ£¿ ±ä³ÉÈçÏ£º
01:aaaaaaaaaa
02:bbbbbbbbb
04:ddddddddddd
05:eeeeeeeeee

˼·£ºÏÈÓÃfseekÕÒµ½ÒªÉ¾³ýµÄ¼Ç¼µÄλÖÃ,È»ºó½«´ËλÖÃ֮ǰµÄ¼Ç¼ÖØÐÂд

ÈëÒ»¸öÎļþ,È»ºóÔÙ½«ÎļþÖ¸ÕëÒƵ½´Ë¼Ç¼µÄĩβ´¦,ÔÚ½«ÓàϵļǼҲдÈë

¸Õ²ÅдÈëµÄÎļþÖÐ,×îºóɾ³ýÔ­À´µÄÎļþ,ÖØÐÂÃüÃûÏÖÔÚÎļþ°¡. 


˼·ÊÇÓУ¬¿ÉÊÇÎÒÊÇÐÂÊÖ£¬±à³Ì×éÖ¯²»ÆðÀ´£¬ÄÄλ¸ßÊÖ¿ÉÒÔ°ï°ïÎÒѽ

you are right.Just do it.

òËÆÕâ¸ö¿ÉÒÔʵÏÖÄãµÄÒªÇó

ɾ³ýÎļþÀïµÄÒ»ÐÐÄÚÈÝ,ºóÃæµÄÐÐÏòÇ°Òƶ¯Ò»ÐУ¬Çå¿Õ×îºóÒ»ÐУ¬³ÌÐòÈçÏ£º

¼Ù¶¨Ò»Ðв»³¬¹ý1000×Ö·û£¬
ɾȥµÚ3ÐУ¬L=3.  
ÊäÈëÊä³öÎļþÃû a.txt


C/C++ code:
#include<stdio.h>

void main()
{
FILE *fin;
fpos_t pos_w,pos_r,pos;
int i,k,L=3;
char *one_line;

one_line = (char *) malloc(1000*sizeof(char));

fin = fopen ("a.txt","rb+");
for (i=1;i<L;i++) fgets(one_line,999,fin);

fgetpos (fin,&pos_w);
fgets(one_line,999,fin); // delete
fgetpos (fin,&pos_r);
pos = pos_r;

while (1 == 1)
{
fsetpos (fin,&pos);
if (fgets(one_line,999,fin) ==NULL) break;
fgetpos (fin,&pos_r);
pos = pos_w;
fsetpos (fin,&pos);
fprintf(fin,"%s",o


Ïà¹ØÎÊ´ð£º

C/SÏîÄ¿¼Ü¹¹Éè¼Æ----ÇóÖú - Java / Java SE

±¾ÈËÕýÔÚÓÃJava×öÒ»¸öC/S¼Ü¹¹µÄÏîÄ¿£¬ 
¿ÉÊÇÓÉÓÚÏîÄ¿±È½Ï´ó£¬Ç°ÆڶԼܹ¹µÄÉè¼ÆÓÈÆäÖØÒª£¬ÒòΪºóÆÚ¿ÉÄÜËæʱ»á¼Ó¸ö¹¦ÄÜ»òÕßÈ¥µôijЩ¹¦ÄÜ¡£ 
ËùÒÔÌصØÑ°ÇóÈçºÎÉè¼ÆC/SµÄ¼Ü¹¹Ê¹³ÌÐò¸ü¼ÓÃæÏò¶ÔÏó¸ü¼ÓÒ×ÓÚά ......

C/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý - C/C++ / C++ ÓïÑÔ

´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......

ÇóÖú£ºC´úÂë¸Äд³ÉVB´úÂë - VB / »ù´¡Àà

Ë­ÄÜ°ïÎÒ°ÑÏÂÃæÕâЩ´úÂë¸Ä³ÉVBÐÎʽµÄ£¬¶àлÁË£¬¼±ÓÃ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[],float g ......

c/sºÍb/sÖ®¼äÔõôͨѶ. - Java / Web ¿ª·¢

ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾­ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾ­Ìá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......

c ÓïÑÔÀ︡µãÏà³Ë ΪʲôСÊýȫΪ0ÁË - C/C++ / CÓïÑÔ

ÈçÌâ:c ÓïÑÔÀ︡µãÏà³Ë ΪʲôСÊýȫΪ0ÁË
float x=8266.206055;
float y=7226.922363;
float z;
z=x*y;
z=59739228.000000;
ΪʲôµÃµ½µÄZ СÊýµãºóÃæȫΪ0ÁË
ºÇºÇ£¬³¬³ö¸¡µãÄܱíʾ·¶Î§ÁË¡£

Âé·³ÓÐÈËÖªµÀ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ