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