assignment of mine. need help in line 26. i dont know what to do with it
how do you convert a string to lower case and upper case and vice versa?
main functiong should not be edited
#include <iostream>
#include <string>
usingnamespace std;
string askString(string s);
string reverseCase(string s);
int main(){
string s;
//this function asks a string from the user
askString(s);
//this function converts small letters to capital, and capital to small
reverseCase(s);
return 0;
}
string askString(string s){
cout << "Type a string: ";
cin >> s;
}
string reversCase(string s){
if(s[i] >= 'a' && s[i] <= 'z'){
//s[i] is lowercase
}
elseif(s[i] >= 'A' && s[i] <= 'Z'){
//s[i] is captial
}
}