C++数据类型--整型

81 阅读1分钟
#include<iostream>
using namespace std;

/*
数据类型
数据类型存在意义:给变量分配合适的内存空间

*/

int main(){
    
    //短整型
    short num01 = 10;
    //整型
    int num02 = 10;
    //长整型
    long num03 = 10;
    //长长整型
    long long num04 = 10;


    cout << "hello world!" << endl;
    system("pause");
    return 0;
}

1638169835294_855E331D-E4A5-4c22-8814-C1C3994A262D.png