c++ get type name of object

C++
#include <iostream>

int main() {
	int myNum;
  	std::cout << typeid(myNum).name();
  	return 0;
}
Source

Also in C++: