"E =" <
} dat4ik_ploskii :: vivod_na_ekran_rezylatov ()
{<<"V ploskom dat4ike C =" <
} ik_ploskii & dat4ik_ploskii :: operator = (const dat4ik_ploskii & a)
{= a.E; = a.S; = a.d; = a.delta; * this;
}
// Proizvodnii klass 'Dat4ik_cilindri4eskii'dat4ik_cilindri4eskii: public dat4ik
{: H;// zadano v faileh;// zadano v failed1, d2 ;//zadano v faile: ik_cilindri4eskii (); ik_cilindri4eskii (float E_ymol4a, float H_ymol4a, float h_ymol4a, float d1_ymol4a, float d2_ymol4a); ik_cilindri4eskii (dat4ik_cilindri4eskii & b); void vvod_dannih_iz_faila (char * s); void vi4islenie_C_ksi (); void vivod_v_fail_rezyltatov (char * s); void vivod_na_ekran_rezylatov (); ik_cilindri4eskii & operator = (const dat4ik_cilindri4eskii & b);
}; ik_cilindri4eskii :: dat4ik_cilindri4eskii ()
{= 0; = 0; = 0; = 0; = 0; = 0; = 0;
} ik_cilindri4eskii :: dat4ik_cilindri4eskii (float E_ymol4a, float H_ymol4a, float h_ymol4a, float d1_ymol4a, float d2_ymol4a)
{= E_ymol4a; = H_ymol4a; = h_ymol4a; = d1_ymol4a; = d2_ymol4a; = 0; = 0;
} ik_cilindri4eskii :: dat4ik_cilindri4eskii (dat4ik_cilindri4eskii & b)
{= b.E; = b.H; = b.h; = b.d1; = b.d2;
} dat4ik_cilindri4eskii :: vvod_dannih_iz_faila (char * s)
{fin (s); (! fin)
{<<"Izvinite, no k sogaleniju fail '" <
}>> E;>> H;>> h;>> d1;>> d2;
} dat4ik_cilindri4eskii :: vi4islenie_C_ksi ()
{= 0.6 * (H + (E-1) * h)/(log (d2/d1)); = 0.56 * (E-1)/(log (d2/d1));
} dat4ik_cilindri4eskii :: vivod_v_fail_rezyltatov (char * s)
{fout (s); <<"Ishodanie dannie:" <
} dat4ik_cilindri4eskii :: vivod_na_ekran_rezylatov ()
{<<"V cilindri4eskom dat4ike C =" <
} ik_cilindri4eskii & dat4ik_cilindri4eskii :: operator = (const dat4ik_cilindri4eskii & b)
{= b.E; = b.H; = b.h; = b.d1; = b.d2; * this;
} main ()
{ik_ploskii x, x_ymol4aniju (E_ymol4aniju_p, S_ymol4aniju, d_ymol4aniju, delta_ymol4aniju), x_kopirivanie (x_ymol4aniju), x_prisvaivanie; ik_cilindri4eskii y, y_ymol4aniju (E_ymol4aniju_c, H_ymol4aniju, h_ymol4aniju, d1_ymol4aniju, d2_ymol4aniju), y_kopirivanie (y_ymol4aniju), y_prisvaivanie; p>
// rabota s ploskim dat4ikom <<"Ploskii dat4ik" / rabota s cilindri4eskim dat4ikom <<"Cilindri4eskiii dat4ik" <