Lee_assign26 - |\n" cout<<"| 4 Lower case to...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 //Cheu Lee Assing 26 #include <iostream> using namespace std int myString(char a[], char c) int main() { int choice=0 while(choice!=5) cout<<"What would you like to do? Choose 1, 2, 3, 4 or 5:\n" cout<<"+----------------------------------------------+\n" cout<<"| 1. Displays the string one word per line |\n" cout<<"| 2. Outputs the string in reverse order |\n" cout<<"| 3. Counts the number of words in a string
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: |\n" cout<<"| 4. Lower case to Upper case/Delete blanks |\n" cout<<"| 5. Exit |\n" cout<<"+----------------------------------------------+\n" cin>>choice if(choice==1){ char myString cout<<"Please enter a string: "<<endl cin.getline(myString) cout<<"Displays the string one word per line"<<endl c...
View Full Document

This note was uploaded on 05/16/2010 for the course CISCO EST61 taught by Professor Miller during the Spring '10 term at Fresno City College.

Ask a homework question - tutors are online