type_info example c++
Example: c++ get type name of object
#include <iostream>
int main() {
int myNum;
std::cout << typeid(myNum).name();
return 0;
}
#include <iostream>
int main() {
int myNum;
std::cout << typeid(myNum).name();
return 0;
}