hello. can someone give me some advise please.
i want the user to select an option such as time, date, del etc
and then the program runs that instruction.
i can't think of a way to link the two.
for example:
below is some code for displaying the time.
how can i join the command from the user to the instruction to show the time.
thanks once again.
i might just complete this work!
got to be in tomorrow! (ouch!)
jim
#include <dos.h>
#include <stdio.h>
int main(void)
{
char time;
printf("what do you want to know");
scanf("%s", time);
\\DO THIS INSTRUCTION
\\ELSE DO SOME OTHER INSTRUCTION
struct dostime_t t;
_dos_gettime(&t);
printf("The current time is: %2d:%02d:%02d.%02d\n", t.hour, t.minute,
t.second, t.hsecond);
return 0;
}