关于C语言出错,哪里出错了?

[复制链接]
查看11 | 回复4 | 2010-9-8 18:22:25 | 显示全部楼层 |阅读模式
#include
putchar('A');
--------------------
--------------------Configuration: stdio - Win32 Debug--------------------
Compiling...
tt.cpp
g:\microsoft visual studio\myprojects\stdio\tt.cpp(2) : error C2059: syntax error : '--'
g:\microsoft visual studio\myprojects\stdio\tt.cpp(2) : error C2059: syntax error : ')'
g:\microsoft visual studio\myprojects\stdio\tt.cpp(2) : error C2501: '_flsbuf' : missing storage-class or type specifiers
g:\microsoft visual studio\myprojects\stdio\tt.cpp(2) : error C2373: '_flsbuf' : redefinition; different type modifiers

g:\microsoft visual studio\vc98\include\stdio.h(276) : see declaration of '_flsbuf'
g:\microsoft visual studio\myprojects\stdio\tt.cpp(2) : error C2078: too many initializers
g:\microsoft visual studio\myprojects\stdio\tt.cpp(2) : error C2440: 'initializing' : cannot convert from 'struct _iobuf *' to 'int'

This conversion requires a reinterpret_cast, a C-style cast or function-style cast
执行 cl.exe 时出错.
-------------------------
我是自学的,这些事什么意思啊

回复

使用道具 举报

千问 | 2010-9-8 18:22:25 | 显示全部楼层
你需要把程序发上来,才知道怎么改啊,你可以在错误上双击,就会知道你的程序哪行错了
回复

使用道具 举报

千问 | 2010-9-8 18:22:25 | 显示全部楼层
1. 英文可以百度一下2. 如果有源代码就好解决了
回复

使用道具 举报

千问 | 2010-9-8 18:22:25 | 显示全部楼层
你把tt.cpp的扩展名改.cpp改称.c变成tt.c#includevoid main () {putchar('A');}代码改成这样 试下
回复

使用道具 举报

千问 | 2010-9-8 18:22:25 | 显示全部楼层
源程序呢?最好发个源程序上来,上面的是程序吗- -..
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行