Archive for Desember 2011

Lyrik Yellow Card_Only One

 YELLOW CARD_ONLY ONE

Broken this fragile thing now
And I can't, I can't pick up the pieces
And I've thrown my words all around
But I can't, I can't give you a reason

I feel so broken up (so broken up)
And I give up (I give up)
I just want to tell you so you know

Here I go, scream my lungs out and try to get to you
You are my only one
I let go, there's just no one that gets me like you do
You are my only, my only one

Made my mistakes, let you down
And I can't, I can't hold on for too long
Ran my whole life in the ground
And I can't, I can't get up when you're gone

And something's breaking up (breaking up)
I feel like giving up (like giving up)
I won't walk out until you know

Here I go, scream my lungs out and try to get to you
You are my only one
I let go, there's just no one who gets me like you do
You are my only my only one

Here I go so dishonestly
Leave a note for you my only one
And I know you can see right through me
So let me go and you will find someone

Here I go, scream my lungs out and try to get to you
You are my only one
I let go, there's just no one, no one like you
You are my only, my only one
My only one
My only one
My only one
You are my only, my only one

Posted in | Leave a comment

HTML Script in PHP

   still in the Post about the PHP programming language
I just wanted to share a few examples of HTML in PHP Script
for a Newbie like me worth sharing:)


<?php
            echo '<div align=center>selamat datang dikota jogjakarta</div>';
            echo '<html>';
            echo '<head>';
            echo "<title>HTML dalam Script PHP</title>";
            echo '</head>';
            echo '<body>';
            echo '<h1>';
            echo '<div align=center>';
            echo "<font color=#0000000 size=+2>";
           
            echo 'Selamat Datang dikota Budaya Jogjakarta';
           
            echo '</font>';
            echo '</div>';
            echo '</h1>';
            echo '</body>';
            echo '</html>';
           
          
            ?>
      

Posted in , | Leave a comment

Exercise Creating Functions for PHP

okay now we try to exercise the functions for PHP
I learned this function from a book that I bought .... then i try or practically exercise:)
discript this we will create 2 tables with the first table in it there are 3 columns
discript this time I make HTML functions in PHP
we sip directly into the script just let me not much
theory  :)

<?
function BukaTabel($warna1, $warna2){
   echo "<table align=center width=\"80%\" border=0 cellspacing=1 cellpadding=0 bgcolor=\"$warna1\"><tr><td>\n";
   echo "<table width=\"100%\" border=0 cellspacing=1 cellpadding=8 bgcolor=\"$warna2\"><tr><td>\n";
   echo "<center>";
   
    }
    function TutupTabel(){
        echo "</td></tr></table></td></tr></table>\n";
         echo "</td></tr></table></td></tr></table>\n";
        }
        ?>


<html>
<head> <title> LatihanFungsi2 </title></head>
<body>
<?php
BukaTabel("red", "#dddddd");
print ("Ini tabel pertama");
print ("<table border=1 width=100%>");
print ("<tr><td width=33% align=center> Kolom1 </td>");
print ("<td width=33% align=center> Kolom2 </td>");
print ("<td width=* align=center> Kolom3 </td> </tr>");
print ("</table>");
TutupTabel();
print ("<br>");
BukaTabel("green", "blue");
print ("Ini tabel kedua");
TutupTabel();
?>
</body>
</html>

Posted in , | Leave a comment

Create_Database PHP

 script this time we are still discussing about the connection to the database .. I previously had mengeshare to make connections now I share how to make in order to connect to the MySQL database we have created through PHPmyadmin.....
 Copy this script or any type of initial create_DB.php then saved with the name or whatever you like
survived Coding..happy coding :)


<html>
    <head>
        <title>
            Menggunakan MYSQL create_DB
        </title>
    </head>
    <body>
        <?php
            $host="localhost";
            $user="sandroid";
            $pass=" ";
            $database="db_guestbook";
            $konek="mysql_connect($host, $user, $pass)" or die("koneksi gagal dilakukan:". mysql_error());
            if (mysql_create_db($database))
            {
                echo"Database $database telah dibuat";
            }
 else {
     echo"gagal dalam membuat database".mysql_error();
    }
    mysql_close($konek);
           
        ?>
    </body>
</html>

Posted in , | Leave a comment

Example Script PHP Connect to Database

<html>
    <head>
        <title>
            Koneksi Databases
        </title>
    </head>
    <body>
        <?php
            $host="localhost"; //This script connects us with the local host
            $user="sandroid"; //this as a user that I use can be replaced...
            $pass=" "; //I purposely empty password, but most also are emptied:)
           
            mysql_connect($host, $username, $password) or die ("koneksi gagal dilakukan:". mysql_error());
           
            echo "koneksi sukses";
        ?>
    </body>
 

Posted in , | Leave a comment

Program AVL Tree C++

 This is the program language C + + that I learned when lab data sturkutr
This program about the AVL tree
okay immediately wrote to the source code


#include <iostream.h>
#include <stdlib.h>
#include<constream.h>
#define FALSE 0
#define TRUE 1
struct AVLNode
{
        int data ;
        int balfact ;
        AVLNode *left ;
        AVLNode *right ;
} ;

class avltree
{
        private :
                AVLNode *root ;
        public :
                avltree( ) ;
                AVLNode*  insert ( int data, int *h ) ;
                static AVLNode* buildtree ( AVLNode *root, int data, int *h ) ;
                void display( AVLNode *root ) ;
                AVLNode* deldata ( AVLNode* root, int data, int *h ) ;
                static AVLNode* del ( AVLNode *node, AVLNode* root, int *h ) ;
                static AVLNode* balright ( AVLNode *root, int *h ) ;
                static AVLNode* balleft ( AVLNode* root, int *h ) ;
                void setroot ( AVLNode *avl ) ;
                ~avltree( ) ;
                static void deltree ( AVLNode *root ) ;
} ;
avltree :: avltree( )
{
        root = NULL ;
}
AVLNode* avltree :: insert ( int data, int *h )
{
        root = buildtree ( root, data, h ) ;
        return root ;
}
AVLNode* avltree :: buildtree ( AVLNode *root, int data, int *h )
{
        AVLNode *node1, *node2 ;

        if ( root == NULL )
        {
                root = new AVLNode ;
                root -> data = data ;
                root -> left = NULL ;
                root -> right = NULL ;
                root -> balfact = 0 ;
                *h = TRUE ;
                return ( root ) ;
        }
        if ( data < root -> data )
        {
                root -> left = buildtree ( root -> left, data, h ) ;

                // If left subtree is higher
                if ( *h )
                {
                        switch ( root -> balfact )
                        {
                                case 1 :
                                        node1 = root -> left ;
                                        if ( node1 -> balfact == 1 )
                                        {
                                                cout << "\nRight rotation." ;
                                                root -> left = node1 -> right ;
                                                node1 -> right = root ;
                                                root -> balfact = 0 ;
                                                root = node1 ;
                                        }
                                        else
                                        {
                                                cout << "\nDouble rotation, left then right." ;
                                                node2 = node1 -> right ;
                                                node1 -> right = node2 -> left ;
                                                node2 -> left = node1 ;
                                                root -> left = node2 -> right ;
                                                node2 -> right = root ;
                                                if ( node2 -> balfact == 1 )
                                                        root -> balfact = -1 ;
                                                else
                                                        root -> balfact = 0 ;
                                                if ( node2 -> balfact == -1 )
                                                        node1 -> balfact = 1 ;
                                                else
                                                        node1 -> balfact = 0 ;
                                                root = node2 ;
                                        }
                                        root -> balfact = 0 ;
                                        *h = FALSE ;
                                        break ;

                                case 0 :
                                        root -> balfact = 1 ;
                                        break ;
                                case -1 :
                                        root -> balfact = 0 ;
                                        *h = FALSE ;
                        }
                }
        }

        if ( data > root -> data )
        {
                root -> right = buildtree ( root -> right, data, h ) ;

                if ( *h )
                {
                        switch ( root -> balfact )
                        {
                                case 1 :
                                        root -> balfact = 0 ;
                                        *h = FALSE ;
                                        break ;
                                case 0 :
                                        root -> balfact = -1 ;
                                        break ;
                                case -1 :
                                        node1 = root -> right ;
                                        if ( node1 -> balfact == -1 )
                                        {
                                                cout << "\nLeft rotation." ;
                                                root -> right = node1 -> left ;
                                                node1 -> left = root ;
                                                root -> balfact = 0 ;
                                                root = node1 ;
                                        }
                                        else
                                        {
                                                cout << "\nDouble rotation, right then left." ;
                                                node2 = node1 -> left ;
                                                node1 -> left = node2 -> right ;
                                                node2 -> right = node1 ;
                                                root -> right = node2 -> left ;
                                                node2 -> left = root ;
                                                if ( node2 -> balfact == -1 )
                                                        root -> balfact = 1 ;
                                                else
                                                        root -> balfact = 0 ;
                                                if ( node2 -> balfact == 1 )
                                                        node1 -> balfact = -1 ;
                                                else
                                                        node1 -> balfact = 0 ;
                                                root = node2 ;
                                        }
                                        root -> balfact = 0 ;
                                        *h = FALSE ;
                        }
                }
        }
        return ( root ) ;
}
void avltree :: display ( AVLNode* root )
{
        if ( root != NULL )
        {
                display ( root -> left ) ;
                cout << root -> data << "\t" ;
                display ( root -> right ) ;
        }
}
AVLNode* avltree :: deldata ( AVLNode *root, int data, int *h )
{
        AVLNode *node ;
        if ( root -> data == 13 )
                cout << root -> data ;
        if ( root == NULL )
        {
                cout << "\nNo such data." ;
                return ( root ) ;
        }
        else
        {
                if ( data < root -> data )
                {
                        root -> left = deldata ( root -> left, data, h ) ;
                        if ( *h )
                                root = balright ( root, h ) ;
                }
                else
                {
                        if ( data > root -> data )
                        {
                                root -> right = deldata ( root -> right, data, h ) ;
                                if ( *h )
                                        root = balleft ( root, h ) ;
                        }
                        else
                        {
                                node = root ;
                                if ( node -> right == NULL )
                                {
                                        root = node -> left ;
                                        *h = TRUE ;
                                        delete ( node ) ;
                                }
                                else
                                {
                                        if ( node -> left == NULL )
                                        {
                                                root = node -> right ;
                                                *h = TRUE ;
                                                delete ( node ) ;
                                        }
                                        else
                                        {
                                                node -> right = del ( node -> right, node, h ) ;
                                                if ( *h )
                                                        root = balleft ( root, h ) ;
                                        }
                                }
                        }
                }
        }
        return ( root ) ;
}
AVLNode* avltree :: del ( AVLNode *succ, AVLNode *node, int *h )
{
        AVLNode *temp = succ ;

        if ( succ -> left != NULL )
        {
                succ -> left = del ( succ -> left, node, h ) ;
                if ( *h )
                        succ = balright ( succ, h ) ;
        }
        else
        {
                temp = succ ;
                node -> data = succ -> data ;
                succ = succ -> right ;
                delete ( temp ) ;
                *h = TRUE ;
        }
        return ( succ ) ;
}
AVLNode* avltree :: balright ( AVLNode *root, int *h )
{
        AVLNode *temp1, *temp2 ;
        switch ( root -> balfact )
        {
                case 1 :
                        root -> balfact = 0 ;
                        break ;
                case 0 :
                        root -> balfact = -1 ;
                        *h  = FALSE ;
                        break ;
                case -1 :
                        temp1 = root -> right ;
                        if ( temp1 -> balfact <= 0 )
                        {
                                cout << "\nLeft rotation." ;
                                root -> right = temp1 -> left ;
                                temp1 -> left = root ;
                                if ( temp1 -> balfact == 0 )
                                {
                                        root -> balfact = -1 ;
                                        temp1 -> balfact = 1 ;
                                        *h = FALSE ;
                                }
                                else
                                {
                                        root -> balfact = temp1 -> balfact = 0 ;
                                }
                                root = temp1 ;
                        }
                        else
                        {
                                cout << "\nDouble rotation, right then left." ;
                                temp2 = temp1 -> left ;
                                temp1 -> left = temp2 -> right ;
                                temp2 -> right = temp1 ;
                                root -> right = temp2 -> left ;
                                temp2 -> left = root ;
                                if ( temp2 -> balfact == -1 )
                                        root -> balfact = 1 ;
                                else
                                        root -> balfact = 0 ;
                                if ( temp2 -> balfact == 1 )
                                        temp1 -> balfact = -1 ;
                                else
                                        temp1 -> balfact = 0 ;
                                root = temp2 ;
                                temp2 -> balfact = 0 ;
                        }
        }
        return ( root ) ;
}
AVLNode* avltree :: balleft ( AVLNode *root, int *h )
{
        AVLNode *temp1, *temp2 ;
        switch ( root -> balfact )
        {
                case -1 :
                        root -> balfact = 0 ;
                        break ;

                case 0 :
                        root -> balfact = 1 ;
                        *h = FALSE ;
                        break ;

                case 1 :
                        temp1 = root -> left ;
                        if ( temp1 -> balfact >= 0 )
                        {
                                cout << "\nRight rotation." ;
                                root -> left = temp1 -> right ;
                                temp1 -> right = root ;

                                if ( temp1 -> balfact == 0 )
                                {
                                        root -> balfact = 1 ;
                                        temp1 -> balfact = -1 ;
                                        *h = FALSE ;
                                }
                                else
                                {
                                        root -> balfact = temp1 -> balfact = 0 ;
                                }
                                root = temp1 ;
                        }
                        else
                        {
                                cout << "\nDouble rotation, left then right." ;
                                temp2 = temp1 -> right ;
                                temp1 -> right = temp2 -> left ;
                                temp2 -> left = temp1 ;
                                root -> left = temp2 -> right ;
                                temp2 -> right = root ;
                                if ( temp2 -> balfact == 1 )
                                        root -> balfact = -1 ;
                                else
                                        root -> balfact = 0 ;
                                if ( temp2-> balfact == -1 )
                                        temp1 -> balfact = 1 ;
                                else
                                        temp1 -> balfact = 0 ;
                                root = temp2 ;
                                temp2 -> balfact = 0 ;
                        }
        }
        return ( root ) ;
}
void avltree :: setroot ( AVLNode *avl )
{
        root = avl ;
}
avltree :: ~avltree( )
{
        deltree ( root ) ;
}


void avltree :: deltree ( AVLNode *root )
{
        if ( root != NULL )
        {
                deltree ( root -> left ) ;
                deltree ( root -> right ) ;
        }
        delete ( root ) ;
}
void main( )
{
        avltree at ;
        AVLNode *avl = NULL ;
        int h ;
        clrscr();
        avl = at.insert ( 20, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 6, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 29, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 5, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 12, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 25, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 32, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 10, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 15, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 27, &h ) ;
        at.setroot ( avl ) ;
        avl = at.insert ( 13, &h ) ;
        at.setroot ( avl ) ;
       
    cout<<endl;
   
    cout << endl << "AVL tree:\n" ;
        at.display ( avl ) ;
   
        avl = at.deldata ( avl, 20, &h ) ;
        at.setroot ( avl ) ;
        avl = at.deldata ( avl, 12, &h ) ;
        at.setroot ( avl ) ;
        cout << endl << "AVL tree after deletion of a node:\n" ;
        at.display ( avl ) ;
       
        cout<<endl<<endl;
        avl = at.insert ( 2, &h ) ;
         at.setroot ( avl ) ;
         avl = at.insert ( 28, &h ) ;
         at.setroot ( avl ) ;
         avl = at.insert ( 20, &h ) ;
         at.setroot ( avl ) ;
         avl = at.insert ( 8, &h ) ;
         at.setroot ( avl ) ;
         cout << endl << "AVL tree after insert of a node:\n" ;
          at.display ( avl ) ;
        
         cout << endl << endl << "AVL tree:\n" ;
        at.display ( avl ) ;
       
        avl = at.deldata ( avl, 15, &h ) ;
        at.setroot ( avl ) ;
        avl = at.deldata ( avl, 5, &h ) ;
        at.setroot ( avl ) ;
        avl = at.deldata ( avl, 6, &h ) ;
        at.setroot ( avl ) ;
        avl = at.deldata ( avl, 13, &h ) ;
        at.setroot ( avl ) ;
        avl = at.deldata ( avl, 10, &h ) ;
        at.setroot ( avl ) ;

        cout << endl << "AVL tree after deletion of a node:\n" ;
         at.display ( avl ) ;
        
        
        cout<<endl;
        avl = at.insert ( 22, &h ) ;
         at.setroot ( avl ) ;
         avl = at.insert ( 23, &h ) ;
         at.setroot ( avl ) ;
         cout << endl << "AVL tree after insert of a node:\n" ;
      
     

        
     

    at.display ( avl ) ;
        getch();
}

Posted in , | Leave a comment

Ucapan Tahun Baru Shinen Omodetou Gozaimasu

Hallo Buat para penjelajah Dunia maya...saya mengucapkan selamat Tahun Baru
Mudah-Mudahan ditahun mendatang kita bisa jadi lebih baik...dari tahun-tahun sebelumnya.....

HAPPY NEW YEAR
Shinen Omodetou Gozaimasu
Douzo Yoi Otoshi Omukae Kudasai



Posted in | Leave a comment

Source Code Program Bus Queue C++

 This is a Program Bus Queue
I created this program for the purposes TP.Struktur Data...in making this program I am Not Alone
i helped two friends..we make use of the programming language C++

The Following Source Program


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

class node{
  public:
  int no;
  char nama[20];
  char jam[20];
  char tujuan[20];
  node * link;
  };
class atb{
public:
atb();
void menu();
void pendaftaran();
void data_antrian();
void operatorr();
void keluar();
void sinar_jaya();
void budiman();
void sumber_kencono();
void damri();
void antrian_sinar_jaya();
void antrian_budiman();
void antrian_sumber_kencono();
void antrian_damri();
void panggil_sinar_jaya();
void panggil_budiman();
void panggil_sumber_kencono();
void panggil_damri();


private:
node * front;
node * rear;
node * front1;
node * rear1;
node * front2;
node * rear2;
node * front3;
node * rear3;
char password[1];
char xx[1];
char pil,layanan,antrian,opr,panggil,back;
};

atb::atb(){
  front=rear=NULL;
  front1=rear1=NULL;
  front2=rear2=NULL;
  front3=rear3=NULL;
  }
void atb::menu() {
for(;;)   {
    clrscr();
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    cout<<"|===========================================================================|\n";
    cout<<"|                                TUGAS PROYEK                               |\n";
    cout<<"|                                                                           |\n";
    cout<<"|                      Ari Kusuma Wardana     (08018363)                    |\n";
    cout<<"|                      Ahsan A. Sandiah       (10018133)                    |\n";
    cout<<"|                      Sofyan Hasan           (08018226)                    |\n";
    cout<<"|                                                                           |\n";
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    cout<<"|===========================================================================|\n";
    cout<<"|                                                                           |\n";
    cout<<"|                                 MENU UTAMA                                |\n";
    cout<<"|                             ANTRIAN TIKET BUS                             |\n";
    cout<<"|                                                                           |\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"|                                                                           |\n";
    cout<<"|                          1.PENDAFTARAN                                    |\n";
    cout<<"|                          2.DATA ANTRIAN                                   |\n";
    cout<<"|                          3.OPERATOR                                       |\n";
    cout<<"|                          4.KELUAR                                         |\n";
    cout<<"|                                                                           |\n";
    cout<<"|===========================================================================|\n";
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    cout<<endl;
    cout<<"Masukkan Pilihan Anda : ";
    cin>>pil;
    cout<<endl;

    switch(pil){
    case '1'  : pendaftaran();
              break;
    case '2'  : data_antrian();
              break;
    case '3'  : operatorr();
              break;
    case '4'  : keluar();
              break;
              }
}
}

void atb::pendaftaran() {
for(;;) {
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                               MENU PENDAFTARAN                            |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|                                                                           |\n";
cout<<"|                      Pilih Layanan Bus yang Ingin Anda Gunakan :          |\n";
cout<<"|                      1.SINAR JAYA                                         |\n";
cout<<"|                      2.BUDIMAN                                            |\n";
cout<<"|                      3.SUMBER KENCONO                                     |\n";
cout<<"|                      4.DAMRI                                              |\n";
cout<<"|                      5.KEMBALI KE MENU UTAMA                              |\n";
cout<<"|                                                                           |\n";
cout<<"|***************************************************************************|\n";
cout<<"|===========================================================================|\n";
cout<<"Masukkan Pilihan Anda : ";
cin>>layanan;
cout<<endl;

switch(layanan){
    case '1'  : sinar_jaya();
              break;
    case '2'  : budiman();
              break;
    case '3'  : sumber_kencono();
              break;
    case '4'  : damri();
              break;
    case '5'  : menu();
              break;
    }
}
}

void atb::data_antrian(){
for(;;) {
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                               DATA ANTRIAN                                |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|                                                                           |\n";
cout<<"|                      Pilih Untuk Melihat Antrian       :                  |\n";
cout<<"|                      1.ANTRIAN BUS SINAR JAYA                             |\n";
cout<<"|                      2.ANTRIAN BUS BUDIMAN                                |\n";
cout<<"|                      3.ANTRIAN BUS SUMBER KENCONO                         |\n";
cout<<"|                      4.ANTRIAN BUS DAMRI                                  |\n";
cout<<"|                      5.KEMBALI KE MENU UTAMA                              |\n";
cout<<"|                                                                           |\n";
cout<<"|***************************************************************************|\n";
cout<<"|===========================================================================|\n";
cout<<"Masukkan Pilihan Anda : ";
cin>>antrian;
cout<<endl;
switch(antrian){
    case '1'  : antrian_sinar_jaya();
              break;
    case '2'  : antrian_budiman();
              break;
    case '3'  : antrian_sumber_kencono();
              break;
    case '4'  : antrian_damri();
              break;
    case '5'  : menu();
              break;
             }
}
}

void atb::operatorr(){

clrscr();
char key[]="a";
cout<<"Masukan Password : " ;
cin>>password;
if (*password==*key) {
for(;;)  {
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                            PEMANGGILAN ANTRIAN                            |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|                                                                           |\n";
cout<<"|               Pilih Untuk Melihat Antrian yang Akan Dipanggil :           |\n";
cout<<"|                                                                           |\n";
cout<<"|                      1.PANGGIL ANTRIAN BUS SINAR JAYA                     |\n";
cout<<"|                      2.PANGGIL ANTRIAN BUDIMAN                            |\n";
cout<<"|                      3.PANGGIL ANTRIAN SUMBER KENCONO                     |\n";
cout<<"|                      4.PANGGIL ANTRIAN DAMRI                              |\n";
cout<<"|                      5.KEMBALI KE MENU UTAMA                              |\n";
cout<<"|                                                                           |\n";
cout<<"|***************************************************************************|\n";
cout<<"|===========================================================================|\n";
cout<<"Masukkan Pilihan Anda : ";
cin>>panggil;
cout<<endl;
switch(panggil){
    case '1'  : panggil_sinar_jaya();
              break;
    case '2'  : panggil_budiman();
              break;
    case '3'  : panggil_sumber_kencono();
              break;
    case '4'  : panggil_damri();
              break;
    case '5'  : menu();
              break;
                 }
      }
}
}

void atb::keluar() {

}

void atb::sinar_jaya(){
  static int n=0;
  n++;
  node * baru = new node;
cout<<"------------------------Pengisian Data------------------------- \n";
cout<<endl;
baru->no=n;
cout<<"Masukan Nama : ";
cin >>baru->nama;
cout<<"Masukkan Jam Keberangkatan :";
cin >>baru->jam;
cout<<"Masukkan Tujuan Keberangkatan :";
cin >>baru->tujuan;
for(;;){
clrscr();
cout<<endl;
cout<<"|********************************************************|\n";
cout<<"|========================================================|\n";
cout<<"|                KARTU ANTRIAN SINAR JAYA                  |\n";
cout<<"|________________________________________________________|\n";
cout<<"|NOMOR ANTRIAN       :"<<baru->no     ;gotoxy(58,6); cout<<"|"<<endl;
cout<<"|NAMA                :"<<baru->nama   ;gotoxy(58,7); cout<<"|"<<endl;;
cout<<"|JAM KEBERANGKATAN   :"<<baru->jam   ;gotoxy(58,9); cout<<"|"<<endl;;
cout<<"|TUJUAN              :"<<baru->tujuan ;gotoxy(58,10); cout<<"|"<<endl;;
cout<<"|========================================================|\n";
cout<<"|          Simpan Dengan Baik Kartu Antrian Ini          |\n";
cout<<"|              Terima Kasih Telah Mendaftar              |\n";
cout<<"|          ..............(^_^).................          |\n";
cout<<"|********************************************************|\n";
cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Pendaftaran                                           |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
if(front != NULL){
  rear->link=baru;
  rear=baru;
  rear->link=NULL;
  }
else{
  front=baru;
  rear=baru;
  rear->link=NULL;
  }
  cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : pendaftaran();
              break;
    }
}
}

void atb::budiman(){
node * baru=new node;
static int n=0;
n++;
baru->no=n;
cout<<"-------------------Pengisian Data------------------------- \n";
cout<<endl;
cout<<"Masukan Nama : ";
cin >>baru->nama;
cout<<"Masukan Jam Keberangkatan :";
cin >>baru->jam;
cout<<"Masukan Tujuan Keberangkatan :";
cin >>baru->tujuan;

for(;;){
clrscr();
cout<<endl;
cout<<"|********************************************************|\n";
cout<<"|========================================================|\n";
cout<<"|               KARTU ANTRIAN BUDIMAN                    |\n";
cout<<"|________________________________________________________|\n";
cout<<"|NOMOR ANTRIAN       :"<<baru->no     ;gotoxy(58,6); cout<<"|"<<endl;
cout<<"|NAMA                :"<<baru->nama   ;gotoxy(58,7); cout<<"|"<<endl;;
cout<<"|JAM KEBERANGKATAN   :"<<baru->jam  ;gotoxy(58,8); cout<<"|"<<endl;;
cout<<"|JURUSAN             :"<<baru->tujuan   ;gotoxy(58,9); cout<<"|"<<endl;;
cout<<"|========================================================|\n";
cout<<"|          Simpan Dengan Baik Kartu Antrian Ini          |\n";
cout<<"|              Terima Kasih Telah Mendaftar              |\n";
cout<<"|          ..............(^_^).................          |\n";
cout<<"|********************************************************|\n";
cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Pendaftaran                                           |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
if(front1 != NULL){
  rear1->link=baru;
  rear1=baru;
  rear1->link=NULL;
  }
else{
  front1=baru;
  rear1=baru;
  rear1->link=NULL;
  }

cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : pendaftaran();
              break;
    }
}
}

void atb::sumber_kencono(){
node * baru=new node;
static int n=0;
n++;
baru->no=n;
cout<<"-------------------Pengisian Data------------------------- \n";
cout<<endl;
cout<<"Masukkan Nama : ";
cin >>baru->nama;
cout<<"Masukkan Jam Keberangkatan :";
cin >>baru->jam;
cout<<"Masukkan Tujuan Keberangkatan :";
cin >>baru->tujuan;

for(;;){
clrscr();
cout<<endl;
cout<<"|********************************************************|\n";
cout<<"|========================================================|\n";
cout<<"|               KARTU ANTRIAN SUMBER KENCONO             |\n";
cout<<"|________________________________________________________|\n";
cout<<"|NOMOR ANTRIAN       :"<<baru->no     ;gotoxy(58,6); cout<<"|"<<endl;
cout<<"|NAMA                :"<<baru->nama   ;gotoxy(58,7); cout<<"|"<<endl;;
cout<<"|JAM KEBERANGKATAN   :"<<baru->jam  ;gotoxy(58,8); cout<<"|"<<endl;;
cout<<"|JURUSAN             :"<<baru->tujuan   ;gotoxy(58,9); cout<<"|"<<endl;;
cout<<"|========================================================|\n";
cout<<"|          Simpan Dengan Baik Kartu Antrian Ini          |\n";
cout<<"|              Terima Kasih Telah Mendaftar              |\n";
cout<<"|          ..............(^_^).................          |\n";
cout<<"|********************************************************|\n";
cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Pendaftaran                                           |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
if(front1 != NULL){
  rear1->link=baru;
  rear1=baru;
  rear1->link=NULL;
  }
else{
  front1=baru;
  rear1=baru;
  rear1->link=NULL;
  }

cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : pendaftaran();
              break;
    }
}
}


void atb::damri(){
node * baru=new node;
static int n=0;
n++;
baru->no=n;
cout<<"-------------------Pengisian Data------------------------- \n";
cout<<endl;
cout<<"Masukkan Nama : ";
cin >>baru->nama;
cout<<"Masukkan Jam Keberangkatan :";
cin >>baru->jam;
cout<<"Masukkan Tujuan Keberangkatan :";
cin >>baru->tujuan;

for(;;){
clrscr();
cout<<endl;
cout<<"|********************************************************|\n";
cout<<"|========================================================|\n";
cout<<"|               KARTU ANTRIAN DAMRI                      |\n";
cout<<"|________________________________________________________|\n";
cout<<"|NOMOR ANTRIAN       :"<<baru->no     ;gotoxy(58,6); cout<<"|"<<endl;
cout<<"|NAMA                :"<<baru->nama   ;gotoxy(58,7); cout<<"|"<<endl;;
cout<<"|JAM KEBERANGKATAN   :"<<baru->jam  ;gotoxy(58,8); cout<<"|"<<endl;;
cout<<"|JURUSAN             :"<<baru->tujuan   ;gotoxy(58,9); cout<<"|"<<endl;;
cout<<"|========================================================|\n";
cout<<"|          Simpan Dengan Baik Kartu Antrian Ini          |\n";
cout<<"|              Terima Kasih Telah Mendaftar              |\n";
cout<<"|          ..............(^_^).................          |\n";
cout<<"|********************************************************|\n";
cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Pendaftaran                                           |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
if(front1 != NULL){
  rear1->link=baru;
  rear1=baru;
  rear1->link=NULL;
  }
else{
  front1=baru;
  rear1=baru;
  rear1->link=NULL;
  }

cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : pendaftaran();
              break;
    }
}
}


void atb::antrian_sinar_jaya(){
for(;;){
int i=0;
node * cetak=front;
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                          DATA ANTRIAN  SINAR JAYA                         |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
if(cetak != NULL){
while(cetak != NULL){
  i++;
  gotoxy(1,7+i);
  cout<<"|";
  gotoxy(3,7+i);
  cout<<cetak->no;
  gotoxy(6,7+i);
  cout<<"|";
  gotoxy(8,7+i);
  cout<<cetak->nama;
  gotoxy(27,7+i);
  cout<<"|";
  gotoxy(29,7+i);
  cout<<cetak->jam;
  gotoxy(42,7+i);
  cout<<"|";
  gotoxy(44,7+i);
  cout<<cetak->tujuan;
  gotoxy(59,7+i);
  cout<<"|";
  gotoxy(77,7+i);
  cout<<"|" ;
  cetak=cetak->link;
  }
}
else{
cout<<"\n .............................. Masih Kosong........................"<<endl ;
}
cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Data Antrian                                          |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
cin>>back;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : data_antrian();
              break;

    }
}
}

void atb::antrian_budiman(){
for(;;){
int i=0;
node * cetak= front1;
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                          DATA ANTRIAN BUDIMAN                             |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
if(cetak != NULL){
while(cetak != NULL){
  i++;
  gotoxy(1,7+i);
  cout<<"|";
  gotoxy(3,7+i);
  cout<<cetak->no;
  gotoxy(6,7+i);
  cout<<"|";
  gotoxy(8,7+i);
  cout<<cetak->nama;
  gotoxy(27,7+i);
  cout<<"|";
  gotoxy(29,7+i);
  cout<<cetak->jam;
  gotoxy(42,7+i);
  cout<<"|";
  gotoxy(44,7+i);
  cout<<cetak->tujuan;
  gotoxy(59,7+i);
  cout<<"|";
  gotoxy(77,7+i);
  cout<<"|" ;
  cetak=cetak->link;
  }
}
else{
cout<<"\n ........................... Masih Kosong......................."<<endl ;
}
cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Data Antrian                                          |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : data_antrian();
              break;

    }
}
}

void atb::antrian_sumber_kencono(){
for(;;){
int i=0;
node * cetak=front2;
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                       DATA ANTRIAN SUMBER KENCONO                         |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
if(cetak != NULL){
while(cetak != NULL){
  i++;
  gotoxy(1,7+i);
  cout<<"|";
  gotoxy(3,7+i);
  cout<<cetak->no;
  gotoxy(6,7+i);
  cout<<"|";
  gotoxy(8,7+i);
  cout<<cetak->nama;
  gotoxy(27,7+i);
  cout<<"|";
  gotoxy(29,7+i);
  cout<<cetak->jam;
  gotoxy(42,7+i);
  cout<<"|";
  gotoxy(44,7+i);
  cout<<cetak->tujuan;
  gotoxy(59,7+i);
  cout<<"|";
  gotoxy(77,7+i);
  cout<<"|" ;
  cetak=cetak->link;

  }
}
else{
cout<<"\n ................. Masih Kosong....................."<<endl ;
}
cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Data Antrian                                          |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : data_antrian();
              break;

    }
}
}

void atb::antrian_damri(){
for(;;){
int i=0;
node * cetak=front3;
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                          DATA ANTRIAN DAMRI                               |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
if(cetak != NULL){
while(cetak != NULL){
  i++;
  gotoxy(1,7+i);
  cout<<"|";
  gotoxy(3,7+i);
  cout<<cetak->no;
  gotoxy(6,7+i);
  cout<<"|";
  gotoxy(8,7+i);
  cout<<cetak->nama;
  gotoxy(27,7+i);
  cout<<"|";
  gotoxy(29,7+i);
  cout<<cetak->jam;
  gotoxy(42,7+i);
  cout<<"|";
  gotoxy(44,7+i);
  cout<<cetak->tujuan;
  gotoxy(59,7+i);
  cout<<"|";
  gotoxy(77,7+i);
  cout<<"|" ;
  cetak=cetak->link;
  }
}
else{
cout<<"\n .................................. Masih Kosong....................."<<endl ;
}
cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Data Antrian                                          |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : data_antrian();
              break;
    }
}
}

void atb::panggil_sinar_jaya(){
node * cetak=front;
if(cetak ==NULL){
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                      PEMANGGILAN ANTRIAN  SINAR JAYA                      |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";

cout<<"\n \n...................... ANTRIAN  SINAR JAYA KOSONG ....................."<<endl ;}
else   {
while(*xx!='p'){
clrscr();
int i=0;
node * cetak= front;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                      PEMANGGILAN ANTRIAN SINAR JAYA                       |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
while(cetak != NULL){
  i++;
  gotoxy(1,7+i);
  cout<<"|";
  gotoxy(3,7+i);
  cout<<cetak->no;
  gotoxy(6,7+i);
  cout<<"|";
  gotoxy(8,7+i);
  cout<<cetak->nama;
  gotoxy(27,7+i);
  cout<<"|";
  gotoxy(29,7+i);
  cout<<cetak->jam;
  gotoxy(42,7+i);
  cout<<"|";
  gotoxy(44,7+i);
  cout<<cetak->tujuan;
  gotoxy(59,7+i);
  cout<<"|";
  gotoxy(77,7+i);
  cout<<"|" ;
  cetak=cetak->link;  }
  cout <<endl<<"\n ----> [p] Untuk Memanggil Antrian : ";
  cin>>xx;
  }

}

char pgl[]="p";
if(*pgl==*xx){
  node * temp=new node;
  if(front != NULL){
    temp=front;
    front=front->link;
    delete temp;
    clrscr();
    int i=0;
    node * cetak= front;
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    cout<<"|===========================================================================|\n";
    cout<<"|                      PEMANGGILAN ANTRIAN SINAR JAYA                         |\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    if(cetak != NULL){
    while(cetak != NULL){
    i++;
    gotoxy(1,7+i);
    cout<<"|";
    gotoxy(3,7+i);
    cout<<cetak->no;
    gotoxy(6,7+i);
    cout<<"|";
    gotoxy(8,7+i);
    cout<<cetak->nama;
    gotoxy(27,7+i);
    cout<<"|";
    gotoxy(29,7+i);
    cout<<cetak->jam;
    gotoxy(42,7+i);
    cout<<"|";
    gotoxy(44,7+i);
    cout<<cetak->tujuan;
    gotoxy(59,7+i);
    cout<<"|";
    gotoxy(77,7+i);
    cout<<"|" ;
    cetak=cetak->link;
    cout<<endl;
    }
    cout<<endl<<"\ 3 = Panggil Antrian Sinar Jaya Lagi ";
    }
    else{cout<<"\n   ................ Antrian Kosong...................."<<endl ;}
  }

}


cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Pemanggilan                                           |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : operatorr();
              break;
    case '3'  :panggil_sinar_jaya ();
              break;
    }
}



void atb::panggil_budiman(){
node * cetak=front1;
if(cetak ==NULL){
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                     PEMANGGILAN ANTRIAN  BUDIMAN                          |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";

cout<<"\n \n..................... ANTRIAN  BUDIMAN KOSONG ....................."<<endl ;}
else   {
while(*xx!='p'){
clrscr();
int i=0;
node * cetak= front1;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                      PEMANGGILAN ANTRIAN BUDIMAN                          |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
while(cetak != NULL){
  i++;
  gotoxy(1,7+i);
  cout<<"|";
  gotoxy(3,7+i);
  cout<<cetak->no;
  gotoxy(6,7+i);
  cout<<"|";
  gotoxy(8,7+i);
  cout<<cetak->nama;
  gotoxy(27,7+i);
  cout<<"|";
  gotoxy(29,7+i);
  cout<<cetak->jam;
  gotoxy(42,7+i);
  cout<<"|";
  gotoxy(44,7+i);
  cout<<cetak->tujuan;
  gotoxy(59,7+i);
  cout<<"|";
  gotoxy(77,7+i);
  cout<<"|" ;
  cetak=cetak->link;  }
  cout <<endl<<"\n ----> [p] Untuk Memanggil Antrian : ";
  cin>>xx;
  }

}

char pgl[]="p";
if(*pgl==*xx){
  node * temp=new node;
  if(front1 != NULL){
    temp=front1;
    front1=front1->link;
    delete temp;
    clrscr();
    int i=0;
    node * cetak= front1;
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    cout<<"|===========================================================================|\n";
    cout<<"|                      PEMANGGILAN ANTRIAN BUDIMAN                          |\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    if(cetak != NULL){
    while(cetak != NULL){
    i++;
    gotoxy(1,7+i);
    cout<<"|";
    gotoxy(3,7+i);
    cout<<cetak->no;
    gotoxy(6,7+i);
    cout<<"|";
    gotoxy(8,7+i);
    cout<<cetak->nama;
    gotoxy(27,7+i);
    cout<<"|";
    gotoxy(29,7+i);
    cout<<cetak->jam;
    gotoxy(42,7+i);
    cout<<"|";
    gotoxy(44,7+i);
    cout<<cetak->tujuan;
    gotoxy(59,7+i);
    cout<<"|";
    gotoxy(77,7+i);
    cout<<"|" ;
    cetak=cetak->link;
    cout<<endl<<endl;
    }
    cout<<"\ 3 = Panggil Antrian Budiman Lagi ";
    }
    else{cout<<"\n   ................ Antrian Kosong...................."<<endl ;}
  }

}


cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Pemanggilan                                           |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : operatorr();
              break;
    case '3'  :panggil_budiman ();
              break;
    }
}

void atb::panggil_sumber_kencono(){
node * cetak=front2;
if(cetak ==NULL){
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                 PEMANGGILAN ANTRIAN  SUMBER KENCONO                    |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";

cout<<"\n \n................. ANTRIAN  SUMBER KENCONO KOSONG ....................."<<endl ;}
else   {
while(*xx!='p'){
clrscr();
int i=0;
node * cetak= front2;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                   PEMANGGILAN ANTRIAN SUMBER KENCONO                      |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
while(cetak != NULL){
  i++;
  gotoxy(1,7+i);
  cout<<"|";
  gotoxy(3,7+i);
  cout<<cetak->no;
  gotoxy(6,7+i);
  cout<<"|";
  gotoxy(8,7+i);
  cout<<cetak->nama;
  gotoxy(27,7+i);
  cout<<"|";
  gotoxy(29,7+i);
  cout<<cetak->jam;
  gotoxy(42,7+i);
  cout<<"|";
  gotoxy(44,7+i);
  cout<<cetak->tujuan;
  gotoxy(59,7+i);
  cout<<"|";
  gotoxy(77,7+i);
  cout<<"|" ;
  cetak=cetak->link;  }
  cout <<endl<<"\n ----> [p]Untuk Memanggil Antrian : ";
  cin>>xx;
  }

}

char pgl[]="p";
if(*pgl==*xx){
  node * temp=new node;
  if(front2 != NULL){
    temp=front2;
    front2=front2->link;
    delete temp;
    clrscr();
    int i=0;
    node * cetak= front2;
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    cout<<"|===========================================================================|\n";
    cout<<"|                  PEMANGGILAN ANTRIAN SUMBER KENCONO                   |\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    if(cetak != NULL){
    while(cetak != NULL){
    i++;
    gotoxy(1,7+i);
    cout<<"|";
    gotoxy(3,7+i);
    cout<<cetak->no;
    gotoxy(6,7+i);
    cout<<"|";
    gotoxy(8,7+i);
    cout<<cetak->nama;
    gotoxy(27,7+i);
    cout<<"|";
    gotoxy(29,7+i);
    cout<<cetak->jam;
    gotoxy(42,7+i);
    cout<<"|";
    gotoxy(44,7+i);
    cout<<cetak->tujuan;
    gotoxy(59,7+i);
    cout<<"|";
    gotoxy(77,7+i);
    cout<<"|" ;
    cetak=cetak->link;
    cout<<endl<<endl;
    }
    cout<<endl<<"\ 3 = Panggil Antrian Sumber Kencono Lagi ";
    }
    else{cout<<"\n   ................ Antrian Kosong...................."<<endl ;}
  }

}

cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Pemanggilan                                           |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : operatorr();
              break;
    case '3'  :panggil_sumber_kencono();
              break;
    }
}


void atb::panggil_damri(){
  node * cetak=front3;
if(cetak ==NULL){
clrscr();
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                       PEMANGGILAN ANTRIAN  DAMRI                   |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";

cout<<"\n \n.....................ANTRIAN  DAMRI KOSONG ......................."<<endl ;}
else   {
while(*xx!='p'){
clrscr();
int i=0;
node * cetak= front3;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"|===========================================================================|\n";
cout<<"|                      PEMANGGILAN ANTRIAN DAMRI                     |\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"|___________________________________________________________________________|\n";
cout<<"| No. |       Nama         |  Jam Keberangkatan   |       Jurusan           |\n";
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
while(cetak != NULL){
  i++;
  gotoxy(1,7+i);
  cout<<"|";
  gotoxy(3,7+i);
  cout<<cetak->no;
  gotoxy(6,7+i);
  cout<<"|";
  gotoxy(8,7+i);
  cout<<cetak->nama;
  gotoxy(27,7+i);
  cout<<"|";
  gotoxy(29,7+i);
  cout<<cetak->jam;
  gotoxy(42,7+i);
  cout<<"|";
  gotoxy(44,7+i);
  cout<<cetak->tujuan;
  gotoxy(59,7+i);
  cout<<"|";
  gotoxy(77,7+i);
  cout<<"|" ;
  cetak=cetak->link;  }
  cout <<endl<<"\n ----> [p] Untuk Memanggil Antrian : ";
  cin>>xx;
  }

}

char pgl[]="p";
if(*pgl==*xx){
  node * temp=new node;
  if(front3 != NULL){
    temp=front3;
    front3=front3->link;
    delete temp;
    clrscr();
    int i=0;
    node * cetak= front3;
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    cout<<"|===========================================================================|\n";
    cout<<"|                     PEMANGGILAN ANTRIAN DAMRI                       |\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"|___________________________________________________________________________|\n";
    cout<<"| No |       Nama         |No. Kendaraan | Merk Kendaraan |jenis modifikasi |\n";
    cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
    if(cetak != NULL){
    while(cetak != NULL){
    i++;
    gotoxy(1,7+i);
    cout<<"|";
    gotoxy(3,7+i);
    cout<<cetak->no;
    gotoxy(6,7+i);
    cout<<"|";
    gotoxy(8,7+i);
    cout<<cetak->nama;
    gotoxy(27,7+i);
    cout<<"|";
    gotoxy(29,7+i);
    cout<<cetak->jam;
    gotoxy(42,7+i);
    cout<<"|";
    gotoxy(44,7+i);
    cout<<cetak->tujuan;
    gotoxy(59,7+i);
    cout<<"|";
    gotoxy(77,7+i);
    cout<<"|" ;
    cetak=cetak->link;
    cout<<endl<<endl;
    }
    cout<<endl<<"\ 3 = Panggil Antrian Modifikasi Lagi ";
    }
    else{cout<<"\n   ................ Antrian Kosong...................."<<endl ;}
  }

}

cout<<endl<<endl;
cout<<"|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|\n";
cout<<"| 1 = Kembali ke Menu Utama                                                 |\n";
cout<<"| 2 = Kembali ke Menu Pemanggilan                                           |\n";
cout<<"|===========================================================================|\n";
cout<<"=";
cin>>back;
cout<<endl;
switch(back){
    case '1'  : menu();
              break;
    case '2'  : operatorr();
              break;
    case '3'  :panggil_damri();
              break;
    }


}

int main () {
atb x;
x.menu();
return 0;
}

Posted in , | Leave a comment

Pages

Search

Sandiah Notes Template Sandroid11.blogspot.com.