Menu Pegawai |
#include
#include
#include
#include
struct data
{
char noidpesan_043[20],tgl[5],namapemesan[20],idpesan_043[20];
char idproduk[20],namaproduk[20];
float total;
}
redata[200];
void main()
{
int j,i=0;
int pil='y';
char pegawai[20],idpegawai[10],password[10],mad='y';
int satuan,harga_043,kode;
meut:
cout<
cout<<" ID Pegawai : ";gets(idpegawai);
cout<<" Pepecyber11.blogspot.com "<
if(strcmp(password,"pepe")==0)
{
clrscr();
cout<<"\t\t\t MENU PEMASARAN PRODUK \n";
cout<<"\t\t\t---------------------------\n";
cout<
switch(kode)
{
case 1:
while(pil=='y'||pil=='y')
{
clrscr();
cout<
cout<<" Nama Pemesan : ";gets(redata[i].namapemesan);
cout<<" Tanggal Transaksi : ";gets(redata[i].tgl);
cout<<" ID Produk : ";gets(redata[i].idproduk);
cout<<" Nama Produk-BP : ";gets(redata[i].namaproduk);
cout<<" Satuan : ";cin>>satuan;
cout<<" Harga-BP : ";cin>>harga_043;
cout<
i++;
}
getch();
goto meut;
case 2:
clrscr();
gotoxy(3,3); cout<<" LAPORAN PEMESANAN & TRANSAKSI PRODUK ";
gotoxy(3,4); cout<<"+----------------------------------------------------------+";
gotoxy(4,5); cout<<"No";
gotoxy(12,5); cout<<" idproduk";
gotoxy(33,5); cout<<" satuan";
gotoxy(47,5); cout<<" harga";
gotoxy(3,6); cout<<"+----------------------------------------------------------+";
for(j=0;j{
gotoxy(2,7+j); cout<<(j+i)<<" "<
gotoxy(3,8+j); cout<<"+----------------------------------------------------------+";
gotoxy(3,10+j); cout<<"+----------------------------------------------------------+";
gotoxy(3,11+j); cout<<"| Selamat Menjalankan Aktifitas | Programer : Pepe Ruller |";
gotoxy(3,12+j); cout<<"+----------------------------------------------------------+";
gotoxy(3,13+j); cout<<"| Pe2ruller@gmail.com - Peperuller@gmail.com - 085375164491| ";
getch();
clrscr();
goto meut;
break;
case 3:
clrscr();
goto meut;
break;
default:
cout<<"Anda Salah Memasukkan Kode";
clrscr();
goto meut;
break;
}
getch();
}
else
{
cout<<" Password Kagak Benar ... !!";
getch();
clrscr();
goto meut;
}
getch();
}
INPUTKAN DATA |
Berikan Komentar tentang Artikel Ini