mardi 29 novembre 2016

How to store a const char* [] in std :: string?

const char * tag1[]={"abc","xyz"};

how to convert tag1 in std::string?

std::string tag2(tag1)

it simply copies tag1[0] to tag2.

Any ideas or workaround?

Aucun commentaire:

Enregistrer un commentaire