hello world
#include//标准输入输出流 in输入 ou输出 C++头文件没有.h using namespace std;//使用命名空间 std打开一个叫std的房间 //函数入口地址 int main() { //cout 标准的输出 //<< 左移运算符 拼接字符串或者基础数据类型(int double) //endl 结束换行 (C语言n rn) cout << "hello world" << 123456< //标准输入输出流 in输入 ou输出 C++头文件没有.h using namespace std;//使用命名空间 std打开一个叫std的房间 //函数入口地址 int atk = 200;//全局变量 void test01() { int atk = 100;//局部变量 //单冒号作用域就近原则 cout << "攻击力为 :" << atk << endl; //双冒号作用域运算符 ::作用域 cout << "全局攻击力为 :" << ::atk << endl; } int main() { test01(); //cout 标准的输出 //<< 左移运算符 拼接字符串或者基础数据类型(int double) //endl 结束换行 (C语言n rn) //std::cout<<"hello world<



