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

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

[复制链接]
16#
发表于 2015-1-3 08:31:58 | 只看该作者
话说你程序搞好了没。貌似不止一两个问题.
17#
 楼主| 发表于 2015-1-3 08:49:46 | 只看该作者
超神级 发表于 2015-1-3 08:31
话说你程序搞好了没。貌似不止一两个问题.

没有啊,没时间弄呢,在写剧情
另外还在纠结存档加密保密的问题
18#
发表于 2015-1-3 13:09:17 | 只看该作者
cad20020601 发表于 2015-1-3 08:49
没有啊,没时间弄呢,在写剧情
另外还在纠结存档加密保密的问题

              
19#
发表于 2015-1-27 09:16:13 | 只看该作者
要写文件的话要用==号
20#
发表于 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]
21#
发表于 2015-1-27 09:21:52 | 只看该作者
我用的VC
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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