#include <iostream> using namespace std; int main() { //整型 //1.短整型short (-32768 到 32767) short num1 = 10; //2.整型int (-2147483648 到 2147483647) int num2 = 10; //3.长整型long (-2147483648 到 2147483647 ) long num3 = 10; //4.长长整型long long (9223372036854775807到9223372036854775808 ) long long num4 = 10; cout << "num1=" << num1 << endl; cout << "num2=" << num2 << endl; cout << "num3=" << num3 << endl; cout << "num4=" << num4 << endl; system("pause"); return 0; }