想想今天干了啥嗯
1、首先解决了昨天Hello World 首行#include <instream>报错的
原因是visual studio2019 装载环境是没有装 C++&windows ,导致新建项目的时候没有C++&windows(空项目选项)
2、变量
int a =10
3、常量
1°#define 变量 变量值
2°consent 变量类型 变量 变量值
#include
using namespace std;
/*常量的定义方式
1、#denfie 宏常量
2、 const 修饰的变量*/
//1、#define 宏常量
#define Day 7
int main()
{
cout << "一周共有:" << Day <<"天"<< endl;
//2、const修饰的变量
const int month = 12;
//之后如 month = 24 报错
//const修饰的变量也称为常量
cout << "一年总共有:" << month << "个月份" << endl;
system("pause");
return 0;
}