tarmizi_adam2005, on 05 January 2014 - 11:35 PM, said:
Hi,
I'm not sure if I follow you correctly, but I think a structure would do. Something like
then you could do something like check the user input(booked) if its either 1,2,3 or 4. If its one of these four, then keep track of it. Just an idea. Maybe someone here would give a better suggestion though.
I'm not sure if I follow you correctly, but I think a structure would do. Something like
struct badminton
{
int court_a =1;
int court_b =2;
int court_c=3;
int court_d=4;
};
then you could do something like check the user input(booked) if its either 1,2,3 or 4. If its one of these four, then keep track of it. Just an idea. Maybe someone here would give a better suggestion though.
thanks for help, but what i want is example like when the court booked by ppl at 8pm-9pm, so other still can book this court at others time but not 8pm-9pm.
the code just able for me track the court, but i dunno how to track it booked by what time/not available at which time.

New Topic/Question
Reply



MultiQuote

|