User input in array from class

Hello, first time posting!

Trying to write a program where the user input get stored in an Array from a class. (don't know if that makes sense)

I have a class "Movies" where the user are suppose to input "Title" and "Type" (DVD/BLUERAY) and those variables are gonna get stored in the same spot in the Array.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <string>
using namespace std;

class Movies
{
public:
	string title;
	string type;
};

int main()
{
	// Movie list
	Movies list[10];


Havnt written much code because I have no flipping idea how to approach it.
I'm having a hard time grasping the idea of classes and arrays at the moment so I've just been staring myself blind in the textbooks and on the net. This is a homework assignment so hints are most welcome!
looks like you got a good grasp to me. what are you confused about?
Like how I get the title and type into the Array I guess.

I'm suppose to be able to add a couple of movies to my array and then write the list out with Title and type of each movie.
Hate to bump, but havnt gotten any further. :/

So im suppose to have user input for Title and Type thats in a class that then moves into an array that I can call to be written out if the user so chooses to.
Topic archived. No new replies allowed.