69,368
社区成员
发帖
与我相关
我的任务
分享
让c++告诉你
#include "iostream"
using namespace std;
int main()
{
const int n1 = 0;
int const n2 = 0;
const int* p1 = 0;
int const* p2 = 0;
cout<<typeid(n1).name()<<endl;
cout<<typeid(n2).name()<<endl;
cout<<typeid(p1).name()<<endl;
cout<<typeid(p1).name()<<endl;
return 0;
}
---------
结果
int
int
int const *
int const *
请按任意键继续. . .