Hi everybody, im new here and this is my first post.
I am a beginner in c++ and i have a problem with a part of my code.
The problem is that the program do not recognize the Class "Nave", i dont know why, and the funny thing is that is exacly the same structure than another class which is recognize by the program, called "Propietario".
Can you help me?? Because this is turning me crazy.
I suspect you either forgot to include nave.h in the cpp file that has main or you have a problem with the order of your include statements, or you have a mutual include snarl that needs a forward declaration.
check to see that you included in main first, that is easy enough to fix.
if you did, try moving nave.h to be the top include in the main file.
if that does not work,
class Nave; to the top of main. This is generally used if you class a uses class b AND class b uses class a, one has to come first, so you tell the compiler that it exists this way.