vendredi 28 août 2015

Ininialize a c-string in C++11?

How do I ininialize a c-string in C++11?

I tried:

char* foo = {"bar"};

but I get:

ISO C++11 does not allow conversion from string literal to 'char *

Aucun commentaire:

Enregistrer un commentaire