printf ("%s -> %s\n", "dhairya", "ayriahd");
wefwfe
print c co com comp compu
what is if(!(str[i]==32))
C does not support operator overloading. If you mean C++ operator overloading, it depends on exactly what you wanted to do. If you wanted to '+' to strings, then you could write: string operator+(string a, string b) { // do something }
what is if(!(str[i]==32))
The most likely reason that the C++ compiler can't find the string object is just that you've forgotten to include the string header file.Code Example:#include // so you can use C++ strings using namespace std; // so you can write 'string' instead of 'std::string' string sMyString; // declare a string
No.
you can use strstr()
string rose = "rose"; rose = rose.Replace('r', 'R');
Use the tolower() function. Example: char* a = 'X'; a = tolower(a); printf("%c", a);
Use the Exception class and type converters.
sdfdg