Converting String to Cstring in C++

后端 未结 3 1351
南旧
南旧 2020-12-24 14:53

I have a string to convert, string = \"apple\" and want to put that into a C string of this style, char *c, that holds {a, p, p, l, e, \'\\0\

3条回答
提交回复
热议问题