Storing and Displaying data with vectors

thanks
Last edited on
Your problem is here:
for (int j = 0; i < count; j++)

You introduce a variable, j, but you are comparing the variable i to count instead of comparing j. It should be this:

for (int j = 0; j < count; j++)
omg wow. can't believe i missed that..
Also just another question

enum genre{ pop, Jazz, Classic};

I'm trying to typecast this but it is only storing the integer value. Sorry if it is an another dumb mistake. :/

1
2
3
 cout << "Enter Genre 0-2" << endl;
    cin >> genre_id;
    temp.kind = static_cast<genre>(genre_id);


Last edited on
 
//typdef so dont have to use struct everytime 


Try it i dare ya
Last edited on
Please DON'T delete your question after you've got your answer. It makes this thread incomprehensible, and useless for anyone else to learn from.
Topic archived. No new replies allowed.