Determinan

30 Mei

Nah….berikut akan sy coba posting program untuk mencari determinan dengan bahasa C++,
Semoga bermanfaat…!!
😀

ini dia programnya,
tarik mang….!!!

#include
#include

class determinan{
friend istream& operator >>(istream&, determinan&);
friend ostream& operator <>(istream& in, determinan& d){
cout<>d.a;
cout<>d.b;
cout<>d.c;
cout<>d.d;
cout<<d.a<<" "<<d.b<<endl;
cout<<d.c<<" "<<d.d<<endl;

return in;
}

ostream& operator <<(ostream& out, const determinan& d){
out<<"HAsil determinannnya "<<d.hasil<>x;
x.hasilnya();
cout<<x;
getch();

return 0;
}

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: