
please wait
string mystring = "flame"; //mystring[0] = f;
string thestandardstring; /*||*/ char* cstylestring;
|
|
char sString[1024]
, you could use strcmp() or strncmp(). Be aware that strncmp() works similarly to strcmp() but also takes into consideration the number of characters you want to compare.#include <string>
, and use the string::compare(...)
method.string::compare()
can be found here: http://www.cplusplus.com/reference/string/string/compare/