Total members 11890 |It is currently Fri Apr 19, 2024 12:28 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Convert characters to upper case using C++
cpp code
/*
* 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;
}
}




_________________
Please recommend my post if you found it helpful


Author:
Beginner
User avatar Posts: 95
Have thanks: 2 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Convert To Upper Case in C++
 Change String to Upper case     -  
 Change letters to upper case by default     -  
 convert string to lower case     -  
 file exists in upper level folder link     -  
 Use the 'default' case     -  
 restrictions on the values of each case of a switch     -  
 How to Convert WMV to AVI on Mac     -  
 convert XMLGregorianCalendar to GregorianCalendar     -  
 convert lowercase to uppercase     -  



Topic Tags

C++ Strings
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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