# include<stdio.h>
# include<conio.h>
struct Dtr {
int hours;
int minutes;
};
main()
struct Dtr Login,Logout;
printf ("enter a Login time\n");
scanf ("%:%",& Login.hours, & Login.minutes);
printf ("enter a Logout time\n");
scanf ("%:%", & Logout.hours, & Login.minutes);
getch ();
return 0;
}
Attached File(s)
-
employee.txt (131bytes)
Number of downloads: 19
This post has been edited by Salem_c: 08 October 2012 - 12:33 AM
Reason for edit:: added [code][/code] tags - learn to use them yourself

New Topic/Question
Reply



MultiQuote




|