Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

cout<<"Multiple Choice: Which of the following is not an operation system\?\n"; //question #1 cout<<" A: Windows 8\n B: iPhone\n C: Linux\n D: Android\n"; cout<<"Enter your choice : "; cin>> choice1; string choice1; while (i < choice1.length()) { choice1[i] = toupper(choice1[i]); i++; if (choice1 == "b" || choice1 == "B" || choice1 == "iPhone" || choice1 =="iphone"); { cout<

OpenStudy (anonymous):

cant get this to work... any help please all characters have been inialized

OpenStudy (rsmith6559):

Two things that I see. choice1 is assigned to before it's declared, your while statement doesn't have a closing curly brace before the if statement. You may want to check out std::endl to make your code more portable.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!