Techiio-author
Started by Anik AdhikaryMay 3, 2022

Open
How to Write a programe in C++ to Convert the string(s) to uppercase?

3 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 3 VIEWES SHARE

can anyone please help me to solve this error?

1 Replies

Techiio-commentatorSidhdarth Basu replied 11 days ago0 likes0 dislikes
#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;
You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance