#include <iostream>
template<typename Defuse>
Defuse Defuser(Defuse a){
int * b;
char * c;
float *d;
if(b=&a)
printf("This is a int value.\n");
if(c=&a)
printf("This is a char value.\n");
if(d=&a)
printf("This is a float value.\n");
}
usingnamespace std;
int main()
{char b='c';
Defuser(b);
system("PAUSE");
return EXIT_SUCCESS;
}
Can not convert char to int*.How can i do this with another method?