I simple program that I wrote to accept string from the user in lowercase and convert it into upper case format in C++ programming language.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details. If you want to advertise on my website, kindly contact me also at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
// lowercase_uppercase.cpp
// Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com and www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines
// Dev C++ Version 5.11
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str;
cout << "\n\n";
cout << "\tLower Case To Upper Case String Conversion in C++";
cout << "\n\n";
cout << "\tEnter a String : ";
getline(cin,str);
for (size_t i = 0; i < str.length(); ++i)
{
str[i]=toupper(str[i]);
}
cout << "\n\n";
cout<<"\tConverted Results in Upper Case : " <<str << ".";
cout << "\n\n";
cout << "\tEnd of Program";
cout << "\n\n";
system("PAUSE");
}