如何用 fgets 函数读取 txt 文件里的数据?
#include "stdafx.h"#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
FILE *fp;
fp!=NULL;
fp=fopen("1.txt","w");
fgets("123.txt",23,fp);
return 0;
}
这是我写的程序,为什么一运行就弹出警告?
2014-05-08 10:27

2014-05-08 10:30