Hey,
I was wondering if any one could help me with several problems I am having.
1st problem:
Can anyone tell me how to combine two int's and put a ':' in between. Bascially I want the user to enter the hour and minutes separately, then combine them both together to look like a digital clock.
Example:
int hour = 10;
int minute = 30;
//then something like:
hour + ':' + minute = thetime;
I'd appreciate it if anyone could help me on this matter. This is for an appointment program i am making.
2nd Problem:
I enter several variables for my program. Begintime and duration which are the main ones. Any ideas how I could make an overlap function to find out if the next begintime (booking) would clash with any other appointments made stored in the array. Such as I had a booking at 10.30 which lasted for an hour already. But then I wanted to add a booking for 11.00. There is a clash. I have no idea where to start on this function.
Thanks