c++ typedef array code example
Example 1: c++ typedef array
// This will define a type named TYPE representing an array of 4 doubles
typedef double TYPE[4];
Example 2: typeid to string c++
#include
#include
#include
using namespace std;
int main(int argc, char** argv) {
string str = "string";
cout << typeid(str).name();
return 0;
}