Thu Nov 13, 2008 2:23 pm
/*
* Convert the input file to all upper case.
*/
#include <iostream>
#include <cctype>
using namespace std;
int main()
{
char inch; // Input character.
while(cin.get(inch)) {
if(isalpha(inch))
cout << (char)toupper(inch);
else
cout << inch;
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.