+ 6
[SOLVED] can someone explain what ->c.str() means?
5 Respuestas
+ 6
c_str() converts 'string' into 'char string'(C string) like in C.
In C, there is no data type like string so we use char array to store string.
Now let's say you are working on C++, you encounter some C functions which require C string (char array) as a parameter.
Then this function comes in handy
+ 4
Ok know I understand thanks nAutAxH AhmAd
+ 3
c_str() converts a "string" into a "char*"
+ 3
just a point to array adress
+ 1
I need string in " "