Please post what you have thusfar and indicate some specific areas in which you require the most help.
jonsca
Quantitative Phrenologist
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581
For the first 3, take a look at an ASCII table: http://web.cs.mun.ca/~michael/c/ascii-table.html , what relationship do you notice between the upper and lowercase characters? Hint, chars are 1-byte integers, so you can perform operations on them. See what you can do with those first, those are the most straightforward.
jonsca
Quantitative Phrenologist
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581
For the others one of the central themes is knowing where to allocate your space for the string and where to delete it.
What is it about the nature of "s" here that creates a problem?
const char* s = str.c_str(); //memory leak!
Think about the variable's lifetime.
jonsca
Quantitative Phrenologist
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581