class Monitor
{
protected:
const int nrSeryjny, szerokosc, wysokosc;
int czestotliwosc;
public:
Monitor(int, int, int);
Monitor(int, int, int, int);
int pobierzCzestotliwosc(int);
void ustawCzestotliwosc(int);
};class LCD : public Monitor
{
private:
Glosnik glosnik;public:
LCD(int nrSeryjny, int szerokosc,int wysokosc, int liczbaKanalow=1)
:
nrSeryjny(nrSeryjny),
szerokosc(szerokosc),
wysokosc(wysokosc)
{}};
zad1.cpp: In constructor ‘LCD::LCD(int, int, int, int)’:
zad1.cpp:50: error: class ‘LCD’ does not have any field named ‘nrSeryjny’
zad1.cpp:51: error: class ‘LCD’ does not have any field named ‘szerokosc’
zad1.cpp:52: error: class ‘LCD’ does not have any field named ‘wysokosc’
zad1.cpp:52: error: no matching function for call to ‘Monitor::Monitor()’
zad1.cpp:26: note: candidates are: Monitor::Monitor(int, int, int, int)
zad1.cpp:25: note: Monitor::Monitor(int, int, int)
zad1.cpp:20: note: Monitor::Monitor(const Monitor&)
zad1.cpp:52: error: no matching function for call to ‘Glosnik::Glosnik()’
zad1.cpp:7: note: candidates are: Glosnik::Glosnik(int)
zad1.cpp:3: note: Glosnik::Glosnik(const Glosnik&)
Nie bardzo wiem dlaczego wywala te bledy. Prosilbym o wskazanie bledow.