标题:请问下FWRITE的调库文件名应该是哪个?
取消只看楼主
hzwk0814
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2006-9-27
 问题点数:0 回复次数:0 
请问下FWRITE的调库文件名应该是哪个?

#include <stdio.h>
#include <stdlib.h>
void main()
{
FILE *fp;
int a[8],*p=a;
if ((fp=fopen("c:\\tc\\1234.txt","wb"))==NULL)
{
printf("\n can not open file! \n");
exit(0);
}
while (p<a+8)
scanf("%d",p++);
fwirte(a,size(int),8,fp);
fclose(fp);
}

这个是从键盘上读取8个整形数据 ,哎问题又来了!!
error C2065: 'fwirte' : undeclared identifier
C:\tc\26\26.cpp(14) : error C2065: 'size' : undeclared identifier
C:\tc\26\26.cpp(14) : error C2144: syntax error : missing ')' before type 'int'
C:\tc\26\26.cpp(14) : error C2059: syntax error : ')'
执行 cl.exe 时出错.

26.exe - 1 error(s), 0 warning(s)

搜索更多相关主题的帖子: FWRITE 文件名 整形 int 
2006-10-06 00:38



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




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

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