class Horario {
horpiece p [336];
public:
void asignarl (horpiece p2 [336]){
p=p2;
}
horpiece obtener (int id);
} hor;
Asignar means set, or assign. When I try to build this it says horpiece* is not equivalent to horpiece [336]
So I just want the class Horario to have an array of horpieces called p
I want to set p=p2
So that I create an array of horpieces and they are set as p for my horario object.
But for some reason p2 and p are not compatible, I even changed "p=p2;" to p=*p2, *p=p2, p=&p2, &p=p2....
Basically I have no Idea of how classes and pointers work yet.