搜索
楼主: cad20020601
打印 上一主题 下一主题

fprintf,fputs等写不进文件肿么破

[复制链接]
楼主
发表于 2015-1-27 09:16:13 | 显示全部楼层
要写文件的话要用==号
沙发
发表于 2015-1-27 09:21:10 | 显示全部楼层
编译了一下,错误信息:[mw_shl_code=c,true]--------------------Configuration: 新建文件 - Win32 Debug--------------------
Compiling...
新建文件.c
H:\我的C设计\新建文件.c(38) : warning C4013: 'xing' undefined; assuming extern returning int
H:\我的C设计\新建文件.c(40) : warning C4013: 'jiu' undefined; assuming extern returning int
H:\我的C设计\新建文件.c(42) : warning C4013: 'shezhi' undefined; assuming extern returning int
H:\我的C设计\新建文件.c(44) : warning C4013: 'zhizuo' undefined; assuming extern returning int
H:\我的C设计\新建文件.c(46) : warning C4033: 'choose' must return a value
H:\我的C设计\新建文件.c(56) : error C2275: 'FILE' : illegal use of this type as an expression
        c:\program files\microsoft visual studio\vc98\include\stdio.h(156) : see declaration of 'FILE'
H:\我的C设计\新建文件.c(56) : error C2065: 'fp' : undeclared identifier
H:\我的C设计\新建文件.c(57) : warning C4047: '=' : 'int ' differs in levels of indirection from 'struct _iobuf *'
H:\我的C设计\新建文件.c(58) : warning C4047: 'function' : 'struct _iobuf *' differs in levels of indirection from 'int '
H:\我的C设计\新建文件.c(58) : warning C4024: 'fclose' : different types for formal and actual parameter 1
H:\我的C设计\新建文件.c(76) : warning C4047: 'function' : 'struct _iobuf *' differs in levels of indirection from 'int '
H:\我的C设计\新建文件.c(76) : warning C4024: 'fputs' : different types for formal and actual parameter 2
H:\我的C设计\新建文件.c(77) : warning C4047: 'function' : 'struct _iobuf *' differs in levels of indirection from 'int '
H:\我的C设计\新建文件.c(77) : warning C4024: 'fprintf' : different types for formal and actual parameter 1
H:\我的C设计\新建文件.c(78) : warning C4047: 'function' : 'struct _iobuf *' differs in levels of indirection from 'int '
H:\我的C设计\新建文件.c(78) : warning C4024: 'fprintf' : different types for formal and actual parameter 1
H:\我的C设计\新建文件.c(79) : warning C4047: 'function' : 'struct _iobuf *' differs in levels of indirection from 'int '
H:\我的C设计\新建文件.c(79) : warning C4024: 'fclose' : different types for formal and actual parameter 1
H:\我的C设计\新建文件.c(81) : error C2143: syntax error : missing ';' before 'type'
H:\我的C设计\新建文件.c(82) : error C2065: 'panduan' : undeclared identifier
H:\我的C设计\新建文件.c(84) : warning C4013: 'youxi' undefined; assuming extern returning int
H:\我的C设计\新建文件.c(86) : warning C4033: 'xing' must return a value
H:\我的C设计\新建文件.c(93) : warning C4047: '=' : 'struct _iobuf *' differs in levels of indirection from 'int '
执行 cl.exe 时出错.

新建文件.exe - 1 error(s), 0 warning(s)[/mw_shl_code]
板凳
发表于 2015-1-27 09:21:52 | 显示全部楼层
我用的VC
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

广播台
特别关注
快速回复 返回顶部 返回列表