How do I convert text in upper case to lower case? :?:
CodeBoy101 -2 Junior Poster in Training
Recommended Answers
Jump to PostWell thats pretty easy.
Use the library
cctype
#include <cctype>
And then you can use the tolower command. It just is opposite of toupper.
char c; cin>>c; char d=tolower(c); cout<<d;
Then that code takes in a character and converts into lowercase.
Jump to Post> It works because each character contains a value
It works because you assume the the character set is contiguous, and is basically US-ASCII
Read about http://en.wikipedia.org/wiki/EBCDIC
Then read about locales.Using …
All 6 Replies
William Hemsworth 1,339 Posting Virtuoso
Sky Diploma 571 Practically a Posting Shark
CodeBoy101 commented: Excellent!! +1
William Hemsworth 1,339 Posting Virtuoso
Salem 5,265 Posting Sage
CodeBoy101 -2 Junior Poster in Training
Radical Edward 301 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.