目录
黑马教程中说要写C++程序的第一步都可以把如下框架先写出来:
#include <iostream>
using namespace std;
int main()
{
system("pause");
return 0;
}
书写hello world
#include <iostream>
using namespace std;
int main()
{
cout << "hello world" << endl;
system("pause");
return 0;
}
注释
变量
变量存在的意义:方便管理内存空间。
常量
关键字
作用:关键字是C++中预先保留的单词(标识符)
·在定义变量或者常量时,不要用关键字
C++关键字如下: