yep! look basically i have no idea how to make the classes... :/
Type: Posts; User: PenLix
yep! look basically i have no idea how to make the classes... :/
:/ For example in the Car class what private data you think i should have? :/
xaxa :P joking...? where is OOP? totaly different languages!!! its not the same way i must think... :'(
sure! i know quite well C(past 2 years) so this is super easy. Look, the real problem i have with C++ is when defining the classes and the data(private), mehtods(public)... :/ i stack there and cant...
In the Dimension class i can get this # by the method GetDimension()...no?
this is exactly what is says: "the program must have a class Car and you must make this way so the main's code and the Cars code will be the same regardless from the dimensions we have"
mmm...ok! so, i think i will have 3 classes. can you help a bit with the private/public data/methods ? :/
class Car{
private:
public:
void InitializePos();
void Move();
...
Well, i' ll try to translate it caz its in greek language :P
We have made in class a program that simulate 2 cars that they move randomly in a 1-dim array untill they collide. Use this program so...
Basically this is what i first thought and this is logical...but i really dont know what exactly i must do. The proffessor is so strange so i cant ask him...nevermind this is another part...
Any...
Hello everyone,
i am new to the forum and would like to ask a question. I would like to write a program where i have 2 cars and they are moving in a d-array. I had made a same program where i had...