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<
cant get this to work... any help please all characters have been inialized
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.
Join our real-time social learning platform and learn together with your friends!