第一次接触 C++ 萌新小白
照着老师的代码做的第一个程序 出现的一下错误
#include <iostream>
#include <windows.h>
int main(void){
std::cout 《 "你好!"《 std::endl;
system("pause")
return 0;
}
第一个位置 错误提示
1>h:\vc++项目\myfirst\myfirst\test.cpp(35): error C2146: 语法错误: 缺少“;”(在标识符“《”的前面)
1>h:\vc++项目\myfirst\myfirst\test.cpp(35): error C2065: “《”: 未声明的标识符
1>h:\vc++项目\myfirst\myfirst\test.cpp(35): error C2143: 语法错误 : 缺少“;”(在“字符串”的前面)
1>h:\vc++项目\myfirst\myfirst\test.cpp(35): error C2146: 语法错误: 缺少“;”(在标识符“《”的前面)
1>h:\vc++项目\myfirst\myfirst\test.cpp(35): error C2065: “《”: 未声明的标识符
1>h:\vc++项目\myfirst\myfirst\test.cpp(35): error C2143: 语法错误 : 缺少“;”(在“std::endl”的前面)
1>h:\vc++项目\myfirst\myfirst\test.cpp(35): warning C4551: 缺少参数列表的函数调用
========== 生成: