Answers for "c++ how to convert any type to string"

C++
1

c++ cli convert string to string^

string str = "Here";
String^ Str = gcnew String(str.c_str());
Posted by: Guest on April-19-2020
0

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;
}
Posted by: Guest on May-03-2020

Code answers related to "c++ how to convert any type to string"

Browse Popular Code Answers by Language