//struktury
#include <iostream.h>
#include <string.h>
struct Szafa 
{
       int drzwi;
       int wysokosc;
       char firma[255];
};
void skopiuj(const Szafa*p, Szafa*d)
{
     d->drzwi=p->drzwi;
     d->wysokosc=p->wysokosc;
     strcpy(d->firma,p->firma);
}
void wypisz(Szafa p)
{
     cout<<p.drzwi<<endl;
     cout<<p.wysokosc<<endl;
     cout<<p.firma<<endl;
     cout<<endl;
}
int main(int argc, char * argv[])
{
    Szafa a,b;
    a.drzwi=21;
    a.wysokosc=3;
    strcpy(a.firma,"Testowa firma");
    Szafa * r=&a;
    Szafa * z=&b;
    wypisz(a);
    skopiuj(r,z);
    wypisz(b);
    system("pause");
    return 0;
}
