一。数据类型及变量
#include<iostream>
using namespace std;
#define Day 7
int main()
{
cout << "一周总共有:" <<Day << "天" << endl;
const int month = 12;
cout << "一年总共有:"<<month<<"个月份" << endl;
cout << "hello C++" << endl;
short num1 = 10;
int num2 = 10;
long num3 = 10;
long long num4 = 10;
cout << num1 << endl;
cout << num2 << endl;
cout << num3 << endl;
cout << num4 << endl;
cout <<"long long占用内存空间为:"<< sizeof(num4) << endl;
float f1 = 3.14142141f;
cout << f1 << endl;
double f2 = 3.1414124122141;
cout << f2 << endl;
float f3 = 3e2;
float f4 = 3e-2;
cout << f3 << endl;
cout << f4 << endl;
system("pause");
return 0;
}