Hello once again,
I'm trying to write a program that reads input until a '@' is typed in...also, I want to echo the input only without digits, and also convert any uppercase letters to lowercase and vice versa...I have this so far but I'm getting a couple of errors and I'm curious why....any help would be great. Thanks-Chap
Code:#include <iostream> #include <cctype> using namespace std; int main() { char ch; cin.get(ch); while (ch != '@') { cout << ch; if (isdigit(ch)) cout << " "; else if (tolower(ch)) cout << ch; else (toupper(ch)) cout << ch; cin.get(ch); } cout << "Done\n"; cin.get(); cin.get(); return 0; }