Welcome to My Website

Download latihan
nama filenya
oop dan fileteks3
atau link ini
http://www.box.net/shared/1ioylcb85m

Class 2

Penulis : Ilham Maulana Senin, Juni 08, 2009



#include "string.h"
#include "ctype.h"
#include "stdio.h"
#include "stdio.h"
#include "iostream.h"
#include "conio.h"
#include "fstream.h"
class buku
{
private:
char kode[10];char judul[35];
char pengarang[20];int jumlah;
public:
void entry_buku();
void info_buku();
};
void rekam_buku(Buku,buku);
void baca_buku(Buku,buku);
void main()
{int pilih;
Buku buku_perpustakaan;
cout<<"DATA BUKU PERPUS"<cout<<"==============================="<cout<<"1.Input data"<cout<<"2.Tampil data"<cout<<"3.Keluar "<cout<<"==============================="<cout<<"masukkan pilihan anda :";cin>>pilih;
if (pilih==1)
{rekam_buku(buku_perpustakaan);}
else if(pilih==2)
{baca_buku(buku_perpustakaan);}
else
exit;
}void buku::info_buku()
{
cout<<"Kode : "<cout<<"Judul : "<cout<<"Pengarang : "<cout<<"Jumlah : "<cout<}


0 komentar

Posting Komentar

Halo Semua. Thanks yach buat komentarnya