C++ Loading

Kata Loading mungkin sudah tidak asing lagi di telinga agan - agan... Apa lagi yg seneng maen game tuh.. hehehehe... Sebenarnya, awalnya ane juga penasaran dengan sebuah program yang di buat dengan C++ yang di awal program berisi Loading... Tetapi dengan Bekal coba - coba, sambil di temani secangkir kopi dan sebatang rokok, akhirnya terpecahkan juga syntaxnya...xixixixi.. Ya, walau loadingnya tidak seperti loading yang elegan, namun cukup puas dengan loading yang sederhana ini. Langsung saja ke Syntaxnya..!! Tetapi,
sebelumnya saya minta maaf jika syntax yang di bawah ini kurang bagus penataannya, itu karena tempat yg di sediakan tidak cukup Gan...Untuk lebih jelasnya, agan bisa download Source Code/ Syntaxnya di SINI

==================================================

#include<iostream.h>
#include<stdlib.h>
#include<conio.h>



void loading ()
{
    for (int o= 0;o<100;o+=1)
    {
        cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
        cout<<"+  ____________________________________________________  +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |             Loading    "<<o<<" %                        | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |____________________________________________________| +                 + "<<endl;
        cout<<"+                                                        +                 + "<<endl;
        cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++ "<<endl;
        system("cls");
    }
}


int main(){
    loading();
        cout<<"++++++++++++++++++++++++++++++++++++++++++++++++++++ "<<endl;
        cout<<"+  ____________________________________________________  + Made by : "<<endl;
        cout<<"+ |              ________   _______   ___              | +                 + "<<endl;
        cout<<"+ |             |   __   | |  ___  | |   |             | + > Kadoel Noesa  + "<<endl;
        cout<<"+ |             |  |__|  | | |   | | |   |             | +   085737282155  + "<<endl;
        cout<<"+ |             |   __   | | |   | | |   |             | +                 + "<<endl;
        cout<<"+ |             |  |  |  | | |___| | |   |             | +                 + "<<endl;
        cout<<"+ |             |__|  |__| |_______| |___|             | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |                                                    | +                 + "<<endl;
        cout<<"+ |  __  __   _____   _____       _____   _____        | +    ,,,   ,,,    + "<<endl;
        cout<<"+ | |   \|  | |  _  | | ____|     |  ___| |     |       | +  ( ',') ('0')/  + "<<endl;
        cout<<"+ | |      | | |_| | | __|_   ___| |     |  _  |       | +  <|''|> /|''|   + "<<endl;
        cout<<"+ | |__|\___| |_____| |_____| |_____|     |_| |_|       | +   |__|   |__|   + "<<endl;
        cout<<"+ |____________________________________________________| +  ./  L  ./  L   + "<<endl;
        cout<<"+                                                        +                 + "<<endl;
        cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ "<<endl;
    cout<<endl<<endl;
system ("pause");
system("cls");

int no,jum,uang,tot,kem,maaf,kurang,kemba;
   char ans,nama[30];


           atas:
           clrscr();
          cout<<"======================================"<<endl;
          cout<<"         =*= Kadoel Bioskop =*=       "<<endl;
          cout<<"======================================"<<endl<<endl;
            cout<<"1. Spyder Man "<<endl;
          cout<<"2. Hulk "<<endl<<endl;
          cout<<"Masukkan Pilihan Film = "; cin>>no;
            cout<<endl;

          if (no==1)
          {
         clrscr();
              cout<<"====================================="<<endl;
           cout<<"         =*= Spyder man =*=          "<<endl;
          cout<<"====================================="<<endl<<endl;
          cout<<"Harga Per Tiket          : Rp. 20000"<<endl;
            cout<<"Masukkan Nama Pelanggan  : "; cin>>nama;
           cout<<"Jumlah Pembelian Tiket   : "; cin>>jum;
          tot=20000*jum;
           cout<<"Harga Total Pembayaran   : Rp. "<<tot<<endl;
          cout<<"Uang Yang Dibayarkan     : Rp. "; cin>>uang;
          if (uang<tot)
          {
              cout<<endl;
              maaf=tot-uang;
              cout<<"Maaf Uang Anda Kurang Lagi Rp. "<<maaf<<endl;
            cout<<"Masukkan Kekurangan anda : Rp. "; cin>>kurang;
            kemba=(uang+kurang)-tot;
            cout<<"==================================="<<endl;
             cout<<"Uang Kembalian Anda      : Rp. "<<kemba<<endl;
            cout<<"==================================="<<endl;
          }
          else
          {
           kem=uang-tot;
          cout<<"===================================="<<endl;
          cout<<"Uang Kembalian Anda      : Rp. "<<kem<<endl;
          cout<<"===================================="<<endl;
          }
          }

         if (no==2)
          {
         clrscr();
              cout<<"====================================="<<endl;
           cout<<"            =*= Hulk =*=             "<<endl;
          cout<<"====================================="<<endl<<endl;
          cout<<"Harga Per Tiket          : Rp. 15000"<<endl;
            cout<<"Masukkan Nama Pelanggan  : "; cin>>nama;
           cout<<"Jumlah Pembelian Tiket   : "; cin>>jum;
          tot=15000*jum;
           cout<<"Harga Total Pembayaran   : Rp. "<<tot<<endl;
          cout<<"Uang Yang Dibayarkan     : Rp. "; cin>>uang;
          if (uang<tot)
          {
              cout<<endl;
              maaf=tot-uang;
              cout<<"Maaf Uang Anda Kurang Lagi Rp. "<<maaf<<endl;
            cout<<"Masukkan Kekurangan anda : Rp. "; cin>>kurang;
            kemba=(uang+kurang)-tot;
            cout<<"==================================="<<endl;
             cout<<"Uang Kembalian Anda      : Rp. "<<kemba;
            cout<<endl;
            cout<<"==================================="<<endl;
          }
          else
          {
           kem=uang-tot;
          cout<<"===================================="<<endl;
          cout<<"Uang Kembalian Anda      : Rp. "<<kem<<endl;
          cout<<"===================================="<<endl;
          }
          }

          cout<<endl<<endl;
          cout<<"=*= SELAMAT MENONTON Mr. "<<nama<<" =*="<<endl<<endl;
          lagi:
          cout<<"Apakah Anda Ingin Memasukkan Data Lagi ? [ Y/N ] : "; cin>>ans;


   if (ans=='y'||ans=='Y')
       { goto atas; }
   else if (ans=='n' || ans=='N')
       {goto bye; }
   else
   { system ("cls"); goto lagi; }
   {
   bye:
   cout<<endl<<endl;
   cout<<" =*= Terima Kasih =*= "<<endl<<endl;
   cout<<"                                                                By : mr. kadoel "<<endl;
   cout<<"                                                                --------------- "<<endl;
   }

   getch();

}

==================================================


Print Outnya :









Semoga Bermanfaat Gan....

Read this | Baca yang ini



Widget by [ Free Widget ]

8 comments:

Rah Adis mengatakan...

keren to Sob :D

Looser Senosci mengatakan...

Tu masih jauh dari kurang sob... Q harus lebih giat lagi.. xixixixi
oa, klau sob pnya program terbaru (apapun itu, yg kren), tolong bsad share ya.... hehehe.. thx sblumnya...

Rah Adis mengatakan...

mari sama belajar sob.. hehe.. akhirnya sempat blogwalking setelah seminggu rehat..

Looser Senosci mengatakan...

Sob... tau website yg mnyediakan template SEO friendly gx..?? selain netbus.us...??

Adrian Rivaldy mengatakan...

widih..rumit amat..tpi nice lah..komentar balik ya di blogku

Nelva Amelia mengatakan...

wah gilak kodingnya! (dies)

Looser Senosci mengatakan...

@Adrian Rivaldy :: Ya sob.. emng lumayan Rumit ini.. :D

Looser Senosci mengatakan...

@Nelva Amelia :: Gilak napa sob..?? kalau di artiin secara perlahan. sebenarnya gampang kok.. :D

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Cheap Web Hosting