exercises 2.38

 1 #include <iostream>
 2 using namespace std;
 3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 4 
 5 int main(int argc, char** argv) {
 6     int a=42;
 7     auto b=a; //int
 8     decltype(a) c=a;//int
 9     
10     int &p=a;
11     auto d=p;//int
12     decltype(p) e=a;//int&
13     return 0;
14 }

posted @ 2015-04-14 09:37  无敌烤皮蛋  阅读(68)  评论(0)    收藏  举报