Write a program that reads a string them changes capital letters with small letters and small letters with capital letters.
Note that if s is a string, s.lenght() returns the length of the string, s[i] is the character in the string at position i .
The first character in a string has index 0;
As an example, cout << s[2]; will display the third character in the string. s[3]=’d’; will replace the third character in the string with ‘d’.
1
Expert's answer
2015-11-20T03:54:33-0500
#include <iostream> #include <string> #include <ctype.h> using namespace std;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment