标题:如何用 fgets 函数读取 txt 文件里的数据?
取消只看楼主
usasun
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2014-5-7
结帖率:100%
 问题点数:0 回复次数:0 
如何用 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;
}

这是我写的程序,为什么一运行就弹出警告?
搜索更多相关主题的帖子: include return 如何 
2014-05-08 10:27



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-431187-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.121317 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved