I keep getting an "error: no matching function for call to 'Vehicles::setYear()'" for each of my function calls
Now that you've learned about classes, you've decided to expand the Vehicle struct from lab2 into a complete class. For now, you've decided to just store the following attributes of a vehicle: price, year and model. Write a computer program in C++ that stores Vehicles in an array and that can add, remove, print and list cars. The commands for adding, removing, printing and listing will come from a file specified on the command-line (Note: STDIN will NOT be used for this lab). Commands are as follows (fields are separated by tabs):
A <price> <year> <model> Add a new Vehicle.
R <price> <year> <model> Remove the specified Vehicle.
P <price> <year> <model> Print the specified Vehicle.
L List all of the Vehicles currently in the database.
Sounds like you created a struct in lab2 and your teacher wants you to turn it into a class and add additional features(add, remove, print and list). Converting from a struct to a class is pretty straight forward. Classes have everything private by default and structs have everything public by default. So if you wish to make things public you need public: before those things.