谁能给段计数的代码?
利用文件的读写实现.#include<stdio.h>
#include<iostream.h>
void main()
{ int c=0;
FILT *fp;
if((fp=("c:\\count.txt","wt+"))==NULL)
{
cout<<"can not open file"<<endl;
getchar();
}
..........
}
2007-03-15 22:34
2007-03-15 22:45
2007-03-15 22:55
2007-03-15 22:55
LZ说清楚点要求吧,,好像fgetc和fputc用字符型的吧,,,,
2007-03-15 23:06
2007-03-15 23:28