1
4. ročník / Re: Stavba pocitacov
« on: 03.01.2013, 15:10:08 »
Keby to este niekoho zaujimalo, priklad na skuske nieje. Vsetko veci z prednasok, ziadne vhdl, ziadne schemy...
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.
http://pastie.org/1360310
Position Member ( Key x, Bvs t )
{
Position pos = NULL;
if (t == NULL) return NULL;
if (t -> key == x) return (Position)t;
if (t -> key < x) pos = Member(x, t -> right);
if (t -> key > x) pos = Member(x, t -> left);
return pos;
}
scanf ("%d",&i);
scanf ("%s",str);
preco pri integeri je & a pri stringu nieje?