In the using of char strings(char x[50]) you are able to assign, change, and veiw what is in the string based on position. For strings(string x) is it possible to do the same? If so, would you mind giving me examples so I can see?
This is a discussion on Question about functions of string vs char string within the C++ Programming forums, part of the General Programming Boards category; In the using of char strings(char x[50]) you are able to assign, change, and veiw what is in the string ...
In the using of char strings(char x[50]) you are able to assign, change, and veiw what is in the string based on position. For strings(string x) is it possible to do the same? If so, would you mind giving me examples so I can see?
Yes.Originally Posted by Robertjh12
Try searching the Web for "C++ string".Originally Posted by Robertjh12
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
Alright, didn't think to do that, my head is a bit mixed up with code