1. #include<bits/stdc++.h>
    2. using namespace std;
    3. int main(){
    4. auto a=1; //auto可自动判断变量a的数据类型且不影响程序运行速度,这里a为int型
    5. decltype(a) b; //decltype可自动获取变量a的数据类型int,并以此定义了一个b
    6. return 0;
    7. }