| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2492 人关注过本帖
标题:小白请教一个简单的输出
取消只看楼主 加入收藏
Q498202241
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2020-2-2
收藏
 问题点数:0 回复次数:2 
小白请教一个简单的输出
今天第一天学习,就遇到了问题,调试半天,请大神些指点。
A=2;
B=3;
C=A+B;
PRINTF C

调试显示:
--------------------Configuration: H1 - Win32 Debug--------------------
Compiling...
输出你好.cpp
F:\输出你好.cpp(2) : error C2065: 'printF' : undeclared identifier
F:\输出你好.cpp(2) : warning C4508: 'main' : function should return a value; 'void' return type assumed
等于几.cpp
F:\等于几.cpp(1) : error C2501: 'A' : missing storage-class or type specifiers
F:\等于几.cpp(2) : error C2501: 'B' : missing storage-class or type specifiers
F:\等于几.cpp(3) : error C2501: 'C' : missing storage-class or type specifiers
F:\等于几.cpp(5) : error C2146: syntax error : missing ';' before identifier 'C'
F:\等于几.cpp(5) : error C2501: 'PRINTF' : missing storage-class or type specifiers
F:\等于几.cpp(5) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.

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


[此贴子已经被作者于2020-2-3 18:42编辑过]

搜索更多相关主题的帖子: type 输出 missing 等于 cpp 
2020-02-03 18:09
Q498202241
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2020-2-2
收藏
得分:0 
谁能帮我说下,谢谢了。
2020-02-03 18:43
Q498202241
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2020-2-2
收藏
得分:0 
回复 6楼 自学的数学
printf("%d",C);  这一句前面的%d是什么意思,不能直接printf c 吗?
2020-02-04 22:11
快速回复:小白请教一个简单的输出
数据加载中...
 
   



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

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