Original Post
🔒 Locked
converting char[] to string
Advertisement
Just use the = operator:
I think it will have to be NULL terminated for this to work.
char var[23];// fill the arraystd::string string_var = var;I think it will have to be NULL terminated for this to work.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement