I'm trying to figure out how to print my class i have here, but i keep getting errors (2 of them). I'm pretty sure i defined everything accordingly, and i am having a problem ending the program. That is what th errors are stating . could someone please guide me in the right direction? Here are my errors and my code that i have:
class cars.cpp(37) : error C2061: syntax error : identifier 'VinNumber'
class cars.cpp(44) : fatal error C1004: unexpected end of file found
Is that your entire class or a 'mis-post' by you? The only thing incorrect about it is you have missed the semi-colon at the end of class (after the last curly brace).
Also, i'm not sure if the member functions 'setMake' and 'setModel' can specify that an array of 10 chars is to be passed. Not sure if it will get removed by the compiler, cause undefined behaviour, or be acceptable; you'll have to get that verified by someone more compotent than myself.