simple program problem

hi everyone
i am new to C++
need help;
//Write a program that for 5 books with this atributes
//books name
//authors name
//publishing year
//book price
to be selected only the books from the same year typed by the user(using structures)
ctreate a structure containing
1
2
3
string title, author;
unsigned short year;
unsigned double price;

and do your own calculations
"to be selected only the books from the same year typed by the user"( this is the problem)
Get the year from the user, then look for books that have the same year.
Topic archived. No new replies allowed.