This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Wednesday, October 7, 2015

Cara Membuat Jadwal Kuliah Menggunakan Array C++



Cara Membuat Jadwal Kuliah Menggunakan Array C++


        









         okeh ketemu lagi dengan saya, kali ini saya akan memberikan informasi tentang Cara Membuat Jadwal Kuliah Menggunakan Array C++.
Baiklah pertama-tama, kita harus siapkan aplikasi software yaitu Borlan C++, jika sudah siap langsung saja copy contoh  inputan di bawah ini.
 


#include <iostream.h>                                               
#include <conio.h>                                                      
#include <stdio.h>
#include <iomanip.h>

main(){
int i,j;
char mk[5][5][100];
char date[5][20]={"Senin","Selasa","Rabu","Kamis","Jumat"};
cout<<"\tMasukkan Jadwal Mata Kuliah Anda\n";
cout<<"_______________________________________________\n";
cout<<endl;
            for(i=0;i<5;i++)
            {
            if(i==0)
            cout<<"SENIN\n";
                        else if(i==1)
                                    cout<<"SELASA\n";
                        else if(i==2)
                                    cout<<"RABU\n";
                        else if(i==3)
                                    cout<<"KAMIS\n";
                        else if(i==4)
                                    cout<<"JUMAT\n";
         cout<<" "<<endl;

            for(j=0;j<5;j++)
            {
            if(j==0)
                                                            cout<<"07.00  | ";
            else if(j==1)
                                                            cout<<"08.50  | ";
            else if(j==2)
                                                            cout<<"10.40  | ";
            else if(j==3)
                                                            cout<<"13.20  | ";
            else if(j==4)
                                                            cout<<"15.30  | ";

                        cout<<" ";gets(mk[i][j]);
            }
         cout<<" "<<endl;
      }

   clrscr();
   cout<<endl<<endl;
   cout<<"\t\t\t JADWAL KULIAH 14 D3 MI 02\n ";
   cout<<"\t\t=====================================\n";
   cout<<endl<<endl<<endl<<endl<<endl;
            cout<<"| 07.00 |"<<endl;
            cout<<"| 08.50 |"<<endl;
            cout<<"| 10.40 |"<<endl;
            cout<<"| 13.20 |"<<endl;
            cout<<"| 15.30 |"<<endl;
            cout<<endl;

            for(int d=0 ; d<5 ; d++)
                        {
                          gotoxy(12*(1+d),8);
                          cout<<date[d];
                        }
            for(i=0 ; i<5 ; i++)
                        {
                        gotoxy(12*(1+j),10);
                        for(j=0; j<5 ; j++)
                                    {
                                    gotoxy(12*(i+1),10+j);
                                    cout<<setiosflags(ios::left)<<setw(5)<<mk[i][j];

                                     }
                        }
    cout<<endl<<endl<<endl<<"Terima Kasih!!!\n\n";
    cout<<endl<<endl;

    cout<<"BY : Haris Budi Nurcahya\n";
    cout<<"14.02.8777";

getch();}



Jika sudah anda copy, langsung saja save dan jalankan atau Run.
berikut contoh hasil Inputan di atas...




        seperti gambar diatas, perintahnya yaitu anda harus memasukan mata kuliah anda lebih dulu, jika sudah selesai memasukan mata kuliah, langkah selanjutnya yaitu langsung anda ENTER...
dan lihat hasil nya..


         berikut hasil dari inputan di atas. Selamat Mengerjakan...
semoga bermanfaat bagi anda... Terima Kasih... :)


Good Luck