#include<iostream>//标准的输入输出流 i--input 输入 o-- output 类似于stdio
using namespace std;//使用 标准 命名空间 打开一个房间
//程序入口函数
int main()
{
//cout 输出流对象 像屏幕中输出内容
// 10 << 1 => 10*2^1
// << 在c++中有新的意义,可以在cout后连接想输出的内容
//endl 结束输出并且换行
//不需要记%d %c %s %f 格式化
//对于换行 \n \r\n,在c++下只需要记住endl
cout << "hello world" << endl;
system("pause");//暂停
return 0;//返回值
}
C++核心编程01C++书写helloworld 笔记
最新推荐文章于 2024-06-12 18:28:23 发布