#include
#include
#include
#include
#include
class data
{
public:
char nama[25], NIP[10]; int bayar;
};
data mahasiswa[50];
int a=-1;
class mhs
{
char nama[25],NIP[10]; int bayar;
public:
mhs()
{
a++;
cout<<"INPUT DATA MAHASISWA"<
cout<<"Masukkan NIP : "<
cout<<"Masukkan nominal pembayaran : Rp. "<
mahasiswa[a].bayar=bayar;
}
~mhs()
{
cout<<"data sudah disimpan !"<
};
void tampilkan()
{
for(int z=0;z<=a;z++)
{
cout<<"Nama : "<
void main()
{
int keluar=0,pilihan;
do
{
system("cls");
cout<<"+ - - - - - - - - - - - +"<
switch (pilihan)
{
case 1:
{
{mhs A;}
getch();
break;
}
case 2:
{
tampilkan();
getch();
break;
}
case 3:
{
keluar=1;
break;
}
}
}while(keluar==0);
}
This entry was posted
on 09.23
.
You can leave a response
and follow any responses to this entry through the
Langganan:
Posting Komentar (Atom)
.
0 comments