Boze, riesite zadania zo ZEI, ak som to aj v zivote nevidel, ked som aspon kus technicky zalozeny, a mam kus logiky tak to je otazka chvilky...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Zobrazi� pr�spevky Menu
private Rectangle rope;
...
this.rope = new Rectangle( (int)( this.cabine.getX() + ( this.cabine.getWidth()/2 ) ),
( this.cabine.getY() - ( floors * this.cabine.getHeight() ) )- this.cabine.getHeight(),
1,
( ( this.cabine.getHeight() * this.floors ) + this.cabine.getHeight() ),
Color.YELLOW );
this.rope.show();
...
...
for( int step = 0; step < cabine.getHeight(); ++step )
{
this.cabine.hide();
this.rope.hide();
this..rope.setHeight( delta + this.rope.getHeight() );
this.cabine.setY( delta + this.cabine.getY() );
this.rope.show();
this.cabine.show();
TimeFlow.elapse( 50 );
}
...
Quote from: paloSK on 02.10.2011, 05:29:48Quote from: RiTChi on 02.10.2011, 02:45:44Skôr ZEIko sa neda neurobit.
Prvy test zo ZEIka sa neda neurobit
...(zadania mi robili kamosi)
public class Chair //trieda
{
private int x;
private int y;
private Rectangle rec1 = new Rectangle( ... );
private Rectangle rec2 = new Rectangle( ... );
private Rectangle rec3 = new Rectangle( ... );
...
public Chair( ... )
{ //konstruktor
//tu si ponastavuj atributy
} //koniec konstruktora
} //koniec triedy
Quote from: Tux on 02.10.2011, 16:23:14Quote from: xxx3 on 01.10.2011, 19:42:00
doplnujuca uloha 3: http://it4kt.fei.tuke.sk/c/oop/scenarios/02/index.html
aha, takze vytvorim si triedu napr. public class Chair { ... } a v nej pomocou new Rectangle(parametre); vytvorim obdlzniky, ktore budu akoze ta stolicka ?
mozno hlupa otazka, ale neviem na to prist: ako vytvorit tie obdlzniky?
Quote from: esperian on 25.09.2011, 18:29:20
ono ja viem porovnat 2 cisla.. aj viem spravit to aby sa nejaky cyklus opakoval n krat xDD ale neviem ako potom porovnat to max z prvych 2 cisel z dalsim tretim .. cize to v podstate potrebujem sklbit dokopy to co viem, plus este porozmyslat nad tym vyhodnocovanim xDD