Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
JagoVB JagoVB is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 508
Rep Power: 14
JagoVB mempunyai hidup yang Normal
Default [ask] header C++

gan,ane baru belajar c++

baru buat headernya



nah ane belajarnya pke tutorial di net,kbtulan ane ada satu bahasa algoritma trus nyoba deh ngrubah k bahasa c++

nah trnyata eror dah..

minta tolong bantuannya ya gan




Code:

#ifndef tiket_h
#define tiket_h




typedef struct penumpang
{
char nama;
int trip
int seat;
} ;

typedef struct bus
{
char nama;
bool berangkat;
penumpang seat[30];
};


penumpang antri[30] (maksudny antri itu array of penumpang);
queue = antri (ini maksudnya varibel queue sama dengan variabel antri);
passenger = penumpang;
temp = penumpang;
bus bis[2];
char menu;
int i,j,k,x,y ;
time waktu;

nah trus kalo di c++ bisa gak gan kalau waktu sekarang di masukin ke variabel buat dipake di program utama?

















Tengkyu buat agan2 yang dah bantu..masalahnya dah kelar







Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 11:17 AM.


no new posts