------ 已启动生成: 项目: EX_1, 配置: Debug Win32 ------
正在编译...
EX_1.cpp
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(8) : error C2871: “System”: 具有该名称的命名空间不存在
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(12) : error C2065: “String”: 未声明的标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(12) : error C2065: “strnum1”: 未声明的标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(12) : error C2065: “strnum2”: 未声明的标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(14) : error C2653: “Console”: 不是类或命名空间名称
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(14) : error C2065: “s”: 未声明的标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(14) : error C2143: 语法错误 : 缺少“)”(在“字符串”的前面)
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(14) : error C2059: 语法错误 : “)”
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(15) : error C2653: “Console”: 不是类或命名空间名称
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(14) : error C3861: “Write”: 找不到标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(15) : error C3861: “ReadLine”: 找不到标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(16) : error C2653: “Console”: 不是类或命名空间名称
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(16) : error C2143: 语法错误 : 缺少“)”(在“字符串”的前面)
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(16) : error C2059: 语法错误 : “)”
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(17) : error C2653: “Console”: 不是类或命名空间名称
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(16) : error C3861: “Write”: 找不到标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(17) : error C3861: “ReadLine”: 找不到标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(19) : error C2653: “Int32”: 不是类或命名空间名称
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(19) : error C3861: “Parse”: 找不到标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(20) : error C2653: “Int32”: 不是类或命名空间名称
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(20) : error C3861: “Parse”: 找不到标识符
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(23) : error C2653: “Console”: 不是类或命名空间名称
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(23) : error C2143: 语法错误 : 缺少“)”(在“字符串”的前面)
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(23) : error C2059: 语法错误 : “)”
c:\documents and settings\tcl\my documents\visual studio 2005\projects\ex_1\ex_1\ex_1.cpp(23) : error C3861: “WriteLine”: 找不到标识符
生成日志保存在“file://c:\Documents and Settings\tcl\My Documents\Visual Studio 2005\Projects\EX_1\EX_1\Debug\BuildLog.htm”
EX_1 - 25 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
上面是错误提示
下面是代码
bYfE2rH7.rar
(317.26 KB)
[求助]在书上看到的 第一次用 vs 写的代码 错了都不知道怎么改,拜托了