Question
C++ (I've been asking the same question over and over. Please answer when you really know how to do it..) Could anyone solve this problem?
C++ (I've been asking the same question over and over. Please answer when you really know how to do it..)
Could anyone solve this problem?
1. I don't want to change any code below
2. The code below solved 9 questions out of 10.
3. The only problem is that somehow one result comes out with " an option:"
#include
int main() { vector cout do { cout cin>>option; if(option == 'q' || option == 'Q') break; else switch(option) { case 'a': case 'A': cout>temp; jerseyNumber.push_back(temp); cout>temp; rating.push_back(temp); break; case 'd': case 'D': cout>temp; int i; for(i = 0; i >temp; for(int i = 0; i >temp; rating.at(i) = temp; break; } } break; case 'r': case 'R': cout>temp; cout temp) cout }while(option != 'q' || option !='Q'); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started