+ 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.

23rd Jan 2018, 9:35 AM
Clay Jensen
Clay Jensen - avatar
7 odpowiedzi
+ 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
23rd Jan 2018, 10:10 AM
Ipang
+ 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? ;>
23rd Jan 2018, 9:47 AM
Hatsy Rei
Hatsy Rei - avatar
23rd Jan 2018, 10:06 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
https://code.sololearn.com/cjxT3dM4PQYD/?ref=app
12th Sep 2018, 1:47 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
9th Apr 2018, 9:44 PM
sneeze
sneeze - avatar
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.
23rd Jan 2018, 9:49 AM
Clay Jensen
Clay Jensen - avatar