Sabtu, 19 Desember 2015

PROGRAM DEV C++ BIODATA

CONTOH PROGRAM DEV C++ BIODATA


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

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
void siji () {
  cout<<"nama   : AJIE "<<endl;
  cout<<"kelas : A "<<endl;
  cout<<"prodi : Informatika "<<endl;
  cout<<"asal : LAMPUNG "<<endl;
}
void kalih (){
  cout<<"nama   : WANTO "<<endl;
  cout<<"kelas : A "<<endl;
  cout<<"prodi : Informatika "<<endl;
  cout<<"asal : JABAR "<<endl;
}
void tigo (){
  cout<<"nama   : GONTANG "<<endl;
  cout<<"kelas : E "<<endl;
  cout<<"prodi : Informatika "<<endl;
  cout<<"asal : BANYUMAS "<<endl;
}
int main(int argc, char** argv) {
int x;
system("Color 5A");
    string sambutan="\t\t>>>>>>>>>> BIODATA <<<<<<<<<<\n\n";
    for (int x=0;x<=sambutan.length();x++){
      cout<<sambutan[x];
      for (double y=0;y<=9990000;y++);
      cout<<endl;
cout<<"|===============================|"<<endl;
cout<<"|pilih biodata yang akan dilihat|"<<endl;
cout<<"|===============================|"<<endl<<endl;
cout<<"1. wanto "<<endl;
cout<<"2. okta "<<endl;
cout<<"3. gontang "<<endl<<endl;
cout<<"Masukkan biodata yang ingin anda ketahui : ";
cin>>x;
system("cls");
if(x==1){
siji();
}
else if(x==2){
kalih();
}
else if(x==3){
tigo();
}
else
cout<<"input salah";
return 0;
}}

TAMPILAN :






0 komentar:

Posting Komentar