background image

Zadanie testowe nr 1

Grupa 1

background image

using namespace

std;

class

zespol

{

static int

nrKol;

int

nr;

double

re, im;

public

:

...(1)...
};

int

zespol

::nrKol;

...(2)...

int

main(){

zespol

z1, z2(-1.), z3(1., 3.);

wypisz(z3);
system(

"pause"

);

return

0;

}

nr lic

nr liczby: 3

czesc rzeczywista: 1

czesc urojona: 3

Press any key to continue . . .

background image

Zadanie testowe nr 1

Grupa 2

background image

class

punkt

{

static int

nrP;

int

nr;

double

x, y;

public

:

...(1)...

};

int

punkt

::nrP;

...(2)...

int

main() {

punkt

p1, p2(1., 3.);

wypisz(p2);

system(

"pause"

);

return

0;

}

nr liczby:  3

nr punktu: 2

wspolrzedna x: 1

wspolrzedna y: 3

Press any key to continue . . .

background image

Zadanie testowe nr 1

Grupa 3

background image

class

samochod

{

static int

nrKolejny;

int

nrSeryjny;

double

mocSilnika;

string

kolor;

public

:

...(1)...

};

int

samochod

:: nrKolejny;

...(2)...

int

main(){

samochod

s1, s2(180., 

"bialy"

);

wypisz(s2);

system(

"pause"

);

r

eturn

0;

}

Numer seryjny samochodu: 2

Moc silnika: 180                                      

Kolor: bialy

Press any key to continue . . .