I'm studying for my exam and I've done an old exam that covers everything we should know for our exam, but I've got a couple of errors and I really didn't know how to solve few problems that i stumbled upon so I did something I'm unsure about is correct/allowed.
If someone could give my code a look and help me out so I can have at least something I know works that I can use as a some kind of reference while studying for the exam.
Does it have something to do with you declaring arrays in your function definitions in CellHandler.cpp but passing pointers? Also Cell.h line 61 you seem to have misspelled "Model"
'showAllTouch' : must return a value
'showDesigns' : must return a value
but that is my biggest concern, I dont know if I'm allowed/able to make those two functions.
The first showAllTouch function should print out all cellphones with touch screen.
showDesign function should let the user type in which design he is interested in (slide, flip, standard) and then it should print out all models with lets say the standard design.
'showAllTouch' : must return a value
'showDesigns' : must return a value
File and line numbers would have helped. You declared these functions to return int, but you don't set a return value. The caller will see indeterminate values coming back from these functions.
If you don't intend to return a value, you should consider declaring them void instead.