Statikus tömb mint struktúra

zoldnap at freemail.hu zoldnap at freemail.hu
Thu May 18 18:21:13 CEST 2006


Szia!

> De mi van akkor, ha nem tudom előre melyikeket kell beletegyem?
> 
> Kösz,
> Lajos
parancsolj:

char terulet[1000];

struct s
{
int a;
int b;
}

int main()
{
struct s * strukturatomb;

strukturatomb=(struct s *) &terulet;

s[2].a=5; // a tomb masodik s struct-janak es annak a parameterenek
irasa.
}

Udv
Zoli




More information about the Elektro mailing list