Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* funzione che compara un orario */
- int compare(orario *a, orario *b){
- if(a->hh >= b->hh){
- if(a->hh == b->hh){
- if(a->mm >= b->mm){
- if(a->mm == b->mm)
- return 0;
- else
- return 1;
- }
- else
- return -1;
- }
- return 1;
- }
- else
- return -1;
- }
Add Comment
Please, Sign In to add comment