14.decltype

#include<iostream>
using namespace std;
int main()
{
    int i = 42, *p = &i, &r = i;
    decltype(r+1) b = 45;
    decltype(*p) c = i;
    cout << r << endl;
    cout << b << "  " << c << endl;
    system("pause");
    return 0;
}

猜你喜欢

转载自www.cnblogs.com/foremember/p/10492603.html
14