User Profile
Collapse
-
wow thank you sooooo much. that did it. -
capatilize first word using space
Code:#include <iostream> #include <cctype> using namespace std; int main(int argc, char *argv[], char **env) { char c, lastc = ' ' ; c= cin.get(); do { if(isalpha(c)) //determines if it is alphabetic cout << (char)toupper(c); //capitalizes and outputs else cout << c; // if not alphabetic, outputs
No activity results to display
Show More
Leave a comment: