I have a problem in the code for this command
“char *s = strtok((char *)str.c_str(),” “);”
here sir has used c_str() , pointers. I am not able to understand what sir I trying to tell us through this command
I have a problem in the code for this command
“char *s = strtok((char *)str.c_str(),” “);”
here sir has used c_str() , pointers. I am not able to understand what sir I trying to tell us through this command
c_str() is used to convert a string into character array
formore details you can check Documentation
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course