Printing from a vector

hello everyone. I have this piece of code that I put together, but I have been having some issues printing it out to the screen from case 2. I used a pointer as you can see to print the output, but its only printing data entered. Any idea what i could use to print in the format below. Thanks everyone.


I want the print out page to be like this:

DVD Information
Title: Thor the Dark World
Length:90


Bonus Info:
Title 1: First bonus info
Length 1: 10
Title 2: Second bonus info
Length 2: 15
Title 3: Third bonus info
Length 3: 20




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
40
41
 case 1: cout << "\nEnter DVD title: "; 
			cin.ignore(); 
			getline(cin,addDVD); //to store all text in a line
			DVDList.push_back(addDVD);
			cout << "Enter DVD length: "; 
			cin.ignore(); 
			getline(cin,addDVD);
			DVDList.push_back(addDVD);
			cout<<endl;
			
			for (int bonus_info =1; bonus_info<=3; bonus_info++)   
			{ 
			cout<<"Enter Bonus info title "<<bonus_info<<": ";
				cin.ignore();
				getline(cin,addDVD);
				DVDList.push_back(addDVD);
				
				cout<<"Enter DVD length: ";
				cin.ignore();
				getline(cin,addDVD);
				DVDList.push_back(addDVD);
				cout<<endl;

	}
				goto mainMenu;
		
			sort(DVDList.begin(), DVDList.end());
			
			
			cout << "\nYour DVD information was entered successfully!" << endl;
		
			goto mainMenu;

	case 2: for(iter = DVDList.begin(); iter != DVDList.end(); iter++)
			{
				cout"DVD Information";
				cout << "\n" << *iter << endl;
			}
			goto mainMenu;

			break;
Topic archived. No new replies allowed.