#include <iostream>
#include <cstring>
usingnamespace std;
char phrase[1000];
char ltr;
int main()
{
cout << "Enter line of strings: ";
cin >> phrase;
cout << "Given line of strings: " << phrase;
cout << "\nChange strings: ";
for (int i = 0; i < strlen(phrase); i++){
if (islower(phrase[i])){
ltr = toupper(phrase[i]);
cout << ltr;
}
elseif (isupper(phrase[i])){
ltr = tolower(phrase[i]);
cout << ltr;
}
}
// system("pause>0");
return 0;
}
I tried to disable system("pause>0") because that runs the program, but on the output there is a message below that says, "process exited with return value 0. Press any key to continue..."
how will i be able to run this without this message showing up on windows 8? Thanks...