I need help with data structure...

I need to create a data structure for below:
1
2
3
4
Enter Movie Name: The Wizard of Oz
Enter Year: 1939
Rating: PG
Ranking (1-5): 4

So far, I created a code almost the same as top:
1
2
3
4
5
6
7
8
9
10
11
12
int Year;
Year = 1938;
cout << "Enter Year: ";
cout << Year << endl;
int Rating;
Rating = PG; // Error, how do I declare Rating as either PG or R?? help!!
cout << "Rating: ";
cout << Rating << endl;
int  Ranking;
Ranking = 4;
cout << "Ranking: ";
cout << Ranking << endl;

I am stuck at declaring Movie name and error at Rating = PG or R.
How do I write that?
Please help :(
string Rating = "PG";
Topic archived. No new replies allowed.