cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Need help Uppercasing the output string
Need help Uppercasing the output string for a translate program
Apr 7, 2012 at 1:13am UTC
yoyojohnny
(13)
Hey guys so I am making a Programneed help upercasing from lowercase
Last edited on
Apr 7, 2012 at 6:45pm UTC
Apr 7, 2012 at 1:47am UTC
Albatross
(4553)
I think you might be interested in tolower() and toupper() in the <cctype> header.
http://cplusplus.com/reference/clibrary/cctype/tolower/
http://cplusplus.com/reference/clibrary/cctype/toupper/
Have fun!
-Albatross
Apr 7, 2012 at 5:18am UTC
IceThatJaw
(529)
Yep, there is a built in tolower() and toupper() function. If you want to convert entire strings to a specific case you need only loop through a string and call tolower() or toupper() for each character.
Have fun!
Topic archived. No new replies allowed.