Translate

Saturday 27 April 2013

Drive Tidak Terdeteksi Setelah Instal Ulang Windows 7


Klik "Windows" di pojok kiri bawah taskbar
  1. Klik Kanan "Computer" pilih "Manage"
  2. Muncul jendela baru "Computer Management"
  3. Arahkan ke "Computer Management" >> "Storages" >> Disk Management"
  4. Klik kanan Partisi HDD Anda yg belum dinamai >>
  5. Pilih "Change drive letter and Path" >> Pilih "Change..." >>
  6. Pilih Drive Letter yg Anda suka, misal D:, E: dll >> lalu pilih "OK"
- Lakukan langkah yg sama pada partisi2 yg belum dinamai / belum tampil di Windows Explorer

Sumber : http://bugspin.blogspot.com/2011/11/drive-d-hilang-setelah-install-windows.html?showComment=1367079331242#c1953814626678002052

Sunday 21 April 2013

Coding C++ Hitung Persegi Panjang Hitung Balok Menggunakan konsep pewarisan


#include<iostream.h>
#include<conio.h>

class Alas {
public :
Alas (float = 0.0, float = 0.0);
float hitungluas();
float hitungkeliling();
void tampilhasil();
protected :
float panjang, lebar, L, K;
};


Alas::Alas (float p, float l)
{
panjang = p;
lebar = l;
}

float Alas::hitungluas()
{
L = panjang * lebar;
return L;
}

float Alas::hitungkeliling()
{
K = (2 * (panjang + lebar ));
return K;
}

void Alas::tampilhasil()
{
cout<<"Hitung Persegi Panjang"<<endl;
cout<<"Panjang : "<<panjang<<endl;
cout<<"Lebar : "<<lebar<<endl;
cout<<"Luas Persegi Panjang : "<<L<<endl;
cout<<"Keliling Persegi Panjang : "<<Alas::hitungkeliling()<<endl;
}

class Balok : public Alas {
public :
Balok(float h = 0.0, float p = 0.0, float l = 0.0);
float hitungvol();
float hitungkeliling();
void tampilhasil();
protected :
float height, V, K;
};

Balok::Balok (float h, float p, float l) : Alas (p,l)
{
height = h;
}

float Balok::hitungvol()
{
V = ( 2* Alas::hitungluas () * height);
return V;
}

float Balok::hitungkeliling()
{
K = ( 2 * Alas::hitungkeliling() + 4 * height);
return K;
}

void Balok:: tampilhasil()
{
cout<<"Hitung Balok"<<endl;
cout<<"Panjang Balok : "<<panjang<<endl;
cout<<"Lebar Balok : "<<lebar<<endl;
cout<<"Tinggi Balok : "<<height<<endl;
cout<<"Volume Balok : "<<V<<endl;
cout<<"Keliling Balok : "<<Balok::hitungkeliling()<<endl;
}

int main()
{
Alas ppanjang (4, 5);
ppanjang.hitungluas();
ppanjang.hitungkeliling();
ppanjang.tampilhasil();
cout<<endl;
Balok kotak (5, 6, 7);
kotak.hitungluas();
kotak.hitungvol();
kotak.tampilhasil();
getch();
return 1;
}

Coding C++ Hitung Balok Hitung Persegi Panjang Menggunakan Konsep Pewarisan (Menggunakan penginputan variabel)


#include <iostream.h>

class Balok {
public :
Balok ();
void SetUkuran (float, float, float);
double hitungVolume ();
double hitungKeliling ();
protected :
float pjg, lbr, tinggi;
};
Balok::Balok () {
pjg = lbr = tinggi = 0;
}
void Balok::SetUkuran (float p, float l, float t) {
pjg = p;
lbr = l;
tinggi = t;
}
double Balok::hitungVolume () {
return pjg * lbr * tinggi;
}
double Balok::hitungKeliling () {
return  (2*pjg) + (2*lbr) + (2*tinggi);
}
class Kotak : public Balok{
public:
void SetUkuran (float, float);
double hitungVolume ();
double hitungKeliling();
};


void Kotak::SetUkuran(float p, float l) {
pjg = p;
lbr = l;
}

double Kotak::hitungVolume () {
return pjg*lbr;
}
double Kotak::hitungKeliling () {
return (2*pjg)+(2*lbr);
}



int main () {
Balok balok1;
float p, l, t;
cout<<"hitung BALOK"<<endl;
cout<<"Masukkan panjang(cm) : "; cin>>p;
cout<<"Masukkan lebar(cm) : "; cin>>l;
cout<<"Masukkan tinggi(cm) : "; cin>>t;
balok1.SetUkuran (p,l,t);
cout << "\nVolume balok (cm^3)= " << balok1.hitungVolume();
cout << "\nKeliling balok (cm)= " << balok1.hitungKeliling();
Kotak kotak1;
cout<<"\n\nhitung PERSEGI PANJANG"<<endl;
cout<<"masukkan panjang(cm) : ";cin>>p;
cout<<"masukkan lebar(cm) : ";cin>>l;
kotak1.SetUkuran (p, l);
cout << "\nLuas kotak(cm^2) = " << kotak1.hitungVolume();
cout << "\nKeliling(cm) = " << kotak1.hitungKeliling();
cin.get();
cin.get();
return 0;
}

Welcome to my blog