can anyone please help me to solve this error?
1 Replies
#include <iostream> #include<string> using namespace std;
int main()
}
string IwTxt;
cout << "\nPlease Enter the String to Convert into Uppercase = ""; getline(cin, IwTxt);
for (int i = 0; i < IwTxt.length(); i++)
{
IwTxt[i] = toupper(IwTxt[i]);
}
cout<<"\nThe Given String in Uppercase = " << IwTxt;
}
return 0;