Lee_assign26 - |\n"...

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&quot; cout&lt;&lt;&quot;| 4. Lower case to Upper case/Delete blanks |\n&quot; cout&lt;&lt;&quot;| 5. Exit |\n&quot; cout&lt;&lt;&quot;+----------------------------------------------+\n&quot; cin&gt;&gt;choice if(choice==1){ char myString cout&lt;&lt;&quot;Please enter a string: &quot;&lt;&lt;endl cin.getline(myString) cout&lt;&lt;&quot;Displays the string one word per line&quot;&lt;&lt;endl c...
View Full Document

Ask a homework question - tutors are online