Read about functions and how they work
for exemple: Functions in C Programming - C and C++ Programming Resources
In your code, try to see what can you put in a function and apply what you've...
Type: Posts; User: nosil
Read about functions and how they work
for exemple: Functions in C Programming - C and C++ Programming Resources
In your code, try to see what can you put in a function and apply what you've...
Solved, was a problem with the #includes, just had to put them right and now everything works like a charm...
Thanks everyone for the kind help,
-NoSila
Yes i know that, but at least is the most approximate OO i can get at least, in terms of encapsulation and data hiding...
Hum ok gonna change that ;) I did that thinking that those typedef's would...
Yes, that always works but when i try to use 2 typedef's of incomplete type structs that i created, it gives-me error
Tried to typedef both structs in the header where i use them, and it works,...
Incomplete types as abstractions
That way you hide the struct implementation from the other codefiles, they have to use the functions to get the struct values, so... this is how i learn you could...
Sorry, forgot to change that, i do that in the Paint.h ...
Or are you saying i have to typedef it in every place i use that type???
But i'm including Main.h wish is including paint And car so, shouldn't all the codefiles have acess to all the typedef's ??
Also, i've tryed that in my project (including only the headers i used)...
Hi,
I'm new here but i've used this forum since i've started programing in C some month ago (btw, my nick is nosila, can a moderator / admin change that please? My bad), i have a school project to...