Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

typeid to string c++

#include <string>
#include <typeinfo>
#include <iostream>

using namespace std;

int main(int argc, char** argv) {
    string str = "string";
    cout << typeid(str).name();
    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typeid #string
ADD COMMENT
Topic
Name
1+9 =