#include
#include
class Central_Processing_Unit
{
int pengolah_ALU, kapasitas_Registers; // private by default
public:
char main_CPU[20];
Central_Processing_Unit(void) // default constructor
{
pengolah_ALU=0;
kapasitas_Registers=0;
strcpy(main_CPU,"KOSONG");
};
Central_Processing_Unit(int ALU, int Registers) // default argument
{
pengolah_ALU=ALU;
kapasitas_Registers=Registers;
strcpy(main_CPU,"KOSONG");
};
Central_Processing_Unit(char main[], int ALU, int Registers=0)
// parameterized constructor
{
pengolah_ALU=ALU;
kapasitas_Registers=Registers;
strcpy(main_CPU, main);
};
void tampilkan_data(void)
{
cout<<"Kecepatan ALU : "<
cout<<"Kapasitas Registers : "<
cout<<"Bagian Komponen Utama CPU : "<< main_CPU<<"\n";
}
~ Central_Processing_Unit() // destructor
{
cout<<”destructor\n”;
};
};
void main()
{
Central_Processing_Unit CPU_1;
Central_Processing_Unit CPU_2(1,1);
Central_Processing_Unit CPU_3("Intel@Core2Duo",75,3);
CPU_1.tampilkan_data();
CPU_2.tampilkan_data();
CPU_3.tampilkan_data();
}
Titanium Chairs | TITanium Art - TITNIA
BalasHapusTITNIA 2014 ford focus titanium hatchback STATION SINGLE titanium tent stove MALIBARIA titanium build RAZOR titanium quartz · micro titanium trim TITNIA STATION LEMING · TITNIA STATION LEMING.
browse this site vibrators,dog dildo,sex toys,sex toys,horse dildo,cheap sex toys,sex chair,cheap sex toys,wolf dildo click here to investigate
BalasHapus