How do you create movie queue?

Hello guys, I am working on a movie netflix project.
I have gone this far at the moment:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <iostream>

using namespace std;

int main()
{
  int choice;
  do
  { 
     //Displaying Options for the menu
     cout << "1. Display Movie Queue " << endl;
     cout << "2. Add Movie to Queue " << endl;
     cout << "3. Edit Movie in Queue" << endl;
     cout << "4. Remove Movie from Queue " << endl;
 cout << "5. Search for Movie in Queue " << endl;
cout << "6. Exit Program " << endl;

     cout << "Enter option : ";
     cin >> choice;
     
     if(choice == 1)
     {
 	cout << "The movie queue is empty! Please add movies to the queue. " << endl;
	for (int i=0; I < myVec.size(); i++)
	{
	cout << myVec[i] << endl;
	}
     }

     vector<string>myVec;
     string The_Wizard_Of-Oz;

     else if(choice == 2)
     {
	cout << "Enter Movie: ";
	getline(cin, The_Wizard_Of_Oz);
	myVec.pushback(The_Wizard_Of_Oz);
        cout << "Movie added to the Queue! " << endl;
     }

I have created an actual code for adding movie queue.
Here is the next part.
I want to create a code for the following:
1
2
3
4
5
6
7
8
Enter option: 2

Enter Movie Name: The Wizard of Oz
Enter Year: 1939
Rating: PG
Ranking (1-5): 4

Movie added to the Queue!

How do i create this code? And how do i call the same function twice but in different movie name?
Any suggestion?
Why have you created a new thread about this?
http://www.cplusplus.com/forum/general/178028/

You seem to be avoiding the Data Structures matter. If you need help with it, ask for it, but I've already told you that you shouldn't try to use a vector, but that's exactly what you've done.
Topic archived. No new replies allowed.