
asdasdfmb
By: a guest on
May 7th, 2012 | syntax:
C++ | size: 0.64 KB | hits: 17 | expires: Never
ostream& operator<<(ostream& out,SAMOLOT& s)
{
out<<s.DO_dane_samo.wez_dlu()<<" "<<s.DO_dane_samo.wez_naz()<<" "<<s.DO_dane_samo.wez_rok()<<" "<<s.BW_bag_samo->wez()<<" "<<s.W_masa<<endl;
return out;
}
//==========================================
istream& operator>>(istream& in, SAMOLOT& s)
{
in>>s.DO_dane_samo>>*(s.BW_bag_samo)>>s.W_masa;
return in;
}
//==========================================
void SAMOLOT::zapisz(int odkad, fstream& f)
{
f.seekp(odkad, ios::beg);
f<<this;
}
void SAMOLOT::wczytaj(int odkad, fstream& f)
{
f.seekg(odkad, ios::beg);
f>>DO_dane_samo>>*(BW_bag_samo)>>W_masa;
}