Word converter
Platform: C++
Published Jan 29, 2009
Updated Jan 29, 2009
Convert your text with small characters to CAPS characters. If you have entered numbers or CAPS words, it will show you hierogliphes
#include <string>
#include <iostream>
#include <iomanip>
using namespace std;
string conv(string text)
{
int l,i;
l=text.length();
for (i=0; i<l; i++)
text.at(i)=char(int(text.at(i))-32);
return text;
}
int main()
{
string text;
cout<<"Enter text: "<<endl;
cin>>text;
text=conv(text);
cout<<text<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}