+ 3
Challenge :: Make a program to convert case of every character in a string.
I. e. Input - Dude! you R cOol. Output - dUDE! YOU r CoOL. I will mark your answer best if you program in C++. and please insert comments.
9 Answers
+ 12
I'll show you mine if you show me yours, mind we're talking code here, not underwear, please : )
(Edit)
Here's mine, it does multiple things, enter blank on Code Playground input to see how to use the code : )
https://code.sololearn.com/cM3qp41znqpZ/?ref=app
+ 11
Ruby has a swapcase which can do this in one statement. You can built the same function in C++ by manipulating ASCII values of the characters in the string.
I suppose this isn't some homework you need to complete? ;>
+ 5
https://code.sololearn.com/cjxT3dM4PQYD/?ref=app
+ 3
Here is my code.
https://code.sololearn.com/c6b5aK76bs6a/?ref=app
0
@Hatsy, No it's not homework. I am learning C++. So I want to make a program on swap case. So I am trying and I want to make you try it.