So basically, I'm creating a switch statement that if the user enters a p or if they enter a P it will still work, any ideas? Thank you
Phil++
31
Posting Whiz in Training
Recommended Answers
Jump to PostConvert the string to evaluate to lower case, then use it.
I prefer if-else statments, of stings for input.For ASCII
In a loop of string size:if (is upper case(91< && 64>)) then swap_case()
Swap function:
function swap_case(&character) character XOR 32
All 4 Replies
Phil++
31
Posting Whiz in Training
MosaicFuneral
812
Nearly a Posting Virtuoso
Freaky_Chris
299
Master Poster
grumpier
149
Posting Whiz in Training
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.