[ create a new paste ] login | about

Link: http://codepad.org/iCOwY9MJ    [ raw code | output | fork ]

C++, pasted on Jul 30:
1
2
3
4
5
6
7
8
9
10
11
12
#include<iostream>
#include<typeinfo>

class C{};

int main()
{
int C::* p;
int (C::*ptr)();
std::cout<<typeid(p).name()<<std::endl<<typeid(ptr).name()<<std::endl;
return 0;
}


Output:
1
2
M1Ci
M1CFivE


Create a new paste based on this one


Comments: