; Cells [12] [parNumber + 1]=FormatFloat ( 0.00 , Pressure); gt; SGComp- gt; Cells [ 13] [parNumber + 1]=FormatFloat ( 0.00 , CritTemp);
} Processor :: Write ()
{FILE * f; s [255]; num;=fopen ( Процессори.txt , r ); (s, 256, f);=atoi (s); num ++; (f);=fopen ( Процессори.txt , a ); (num!=1) (f, % s n , raquo;);(f,laquo;%snraquo;,FloatToStr(this-gt;price()));(f,laquo;%snraquo;,this-gt;manufacturer());(f,laquo;%snraquo;,this-gt;model());(f,laquo;%snraquo;,IntToStr(this-gt;guarantee()));(f,laquo;%snraquo;,FloatToStr(this-gt;weigth()));(f,laquo;%snraquo;,IntToStr(this-gt;frequencySpeed()));(f,laquo;%snraquo;,this-gt;about());(f,laquo;%snraquo;,FloatToStr(this-gt;technology()));(f,laquo;%snraquo;,this-gt;nest());(f,laquo;%snraquo;,IntToStr(this-gt;cache()));(f,laquo;%snraquo;,IntToStr(this-gt;countOfNucleus()));(f,laquo;%snraquo;,FloatToStr(this-gt;pressure()));(f,laquo;%snraquo;,FloatToStr(this-gt;critTemp()));(f);= fopen(laquo;Процессоры.txtraquo;,laquo;r+raquo;);(f,laquo;%snraquo;,IntToStr(num));(f);
} Processor :: about ()
{About;
} Processor :: technology ()
{Technology;
} Processor :: nest ()
{Nest;
} Processor :: cache ()
{Cache;
} Processor :: countOfNucleus ()
{CountOfNucleus;
} Processor :: pressure ()
{Pressure;
} Processor :: critTemp ()
{CritTemp;
} :: ~ Processor (void)
{}
Додаток 5
Клас KeyBoard
# pragma hdrstop
# include lt; stdio.h gt;
# include RemoteTerminalUnits.h
# include KeyBoard.h
# include ChoiseComp.h
# pragma package (smart_init) * Good; * Periph; :: KeyBoard (float parPrice, AnsiString parManufacturer, AnsiString parModel, int parGuarantee, float parWeigth, int parDistance, parColor, AnsiString parKeyIllumination, AnsiString parLCD):Peripheral (parPrice, parManufacturer, parModel, parGuarantee, parWeigth, parDistance)
{= parColor;=parKeyIllumination;=parLCD;
} KeyBoard :: Show (int parNumber)
{:: Show (parNumber); gt; SGComp- gt; Cells [7] [parNumber + 1]=Color; gt; SGComp- gt; Cells [8] [parNumber + 1]= KeyIllumination; gt; SGComp- gt; Cells [9] [parNumber + 1]=LCD;
} KeyBoard :: Write ()
{FILE * f; s [255]; num;=fopen ( Клави.txt , r ); (s, 256, f);=atoi (s); num ++; (f);=fopen ( Клави.txt , a ); (num!=1) (f, % s n , raquo;);(f,laquo;%snraquo;,FloatToStr(this-gt;price()));(f,laquo;%snraquo;,this-gt;manufacturer());(f,laquo;%snraquo;,this-gt;model());(f,laquo;%snraquo;,IntToStr(this-gt;guarantee()));(f,laquo;%snraquo;,FloatToStr(this-gt;weigth()));(f,laquo;%snraquo;,IntToStr(this-gt;distance()));(f,laquo;%snraquo;,this-gt;color());(f,laquo;%snraquo;,this-gt;keyIllumination());(f,laquo;%snraquo;,this-gt;lcd());(f);= fopen ( Клави.txt , r + ); (f, % s n , IntToStr (num)); (f);
} KeyBoard :: color ()
{Color;
} KeyBoard :: keyIllumination ()
{KeyIllumination;
} KeyBoard :: lcd ()
{LCD;
} :: ~ KeyBoard (void)
{}