小白请教一个简单的输出
今天第一天学习,就遇到了问题,调试半天,请大神些指点。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编辑过]