Question: C++ How could I use a user input to create an array? Ex: int arraynumber; int i - 0; char placelist[arraynumber]; cout < < How
C++
How could I use a user input to create an array? Ex:
int arraynumber;
int i - 0;
char placelist[arraynumber];
cout << "How many restaurant are in your town?: "
cin >> arraynumber;
while (i <= arraynumber) {
cout << "Eneter restaurant names here: ";
cin >> placelist;
i++;
}
*Create a list of restaurant printed here*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
