I need help on how to enqueue time. An example is
But it will read an error because the ( : ) is there. So how can I do it so that I can output time.Code:pqueue.enqueue("Name", 11:00);
Desired outpout:
Name 11:00
I need help on how to enqueue time. An example is
But it will read an error because the ( : ) is there. So how can I do it so that I can output time.Code:pqueue.enqueue("Name", 11:00);
Desired outpout:
Name 11:00
your container class will need to accept the time as a string, and (optionally) convert it to some internal time representation.
You can store time as a string, as a custom struct, or as a time_t. If you're not doing arithmetic with time, then a string is simplest. But you can't just write 10:00 and expect the language to interpret it as time.
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.