hi everyone, i ran out of ideas on how to fix this problem.
i running a program with an output sample below
++++++++++++++++++++++++++++++++++++++++++++++
Input the date:
2
3
2006
Input appointment time:
4
2/3/2006
9am Available
10am Available
11am Available
12pm Available
1pm Available
2pm Available
3pm Available
4pm Booked
++++++++++++++++++++++++++++++++++++++++++++++
i am trying to alter the output so that if any of the above hours
is free -- the user can request the first hours if it is free
e.g as seen above 9am or the next free hour thereafter.
==============================================
==============================================Code:if(!schedule[t]) {//Check if booked schedule[t]=true;//Now booked return 1;//Success! } else return 0;//Not available...