Hello everybody, I'm new here. I'm new to C++ as well and have many problems that you might find silly. One of them is this code, not willing to compile:
#include<iostream>
class Okno;
class ListaOkienEl;
class ListaOkien{
ListaOkienEl* pocz;
public:
ListaOkien();
~ListaOkien();
void DodajPocz(ListaOkienEl&);
void UsunPocz();
ListaOkienEl* WezPocz();
};
ListaOkien::ListaOkien(){
pocz=NULL;
}
class Okno {
protected:
int x1,y1,x2,y2;
};
// podklasy okien
class Desktop : Okno{
private:
ListaOkien otwarte_okna;
Desktop(const Desktop&);
public:
Desktop();
};
Desktop::Desktop(){
otwarte_okna();
x1=y1=0;
x2=y2=1000000;
}
The compiler (devcpp) doesn't like the 32nd line. It says that there is no match for this call. But I gave it the ListaOkien::ListaOkien() constructor, so what is it talking about?