#include <iostream>
#include <string>
#include <typeinfo>
using namespace std;
template <typename T>
string typeof ( T arg )
{
return typeid ( arg ).name();
}
int main()
{
char ch = 'a';
cout<< typeof ( ch ) <<endl;
}
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401