How to read in time format?
Can someone help me? thanks.... I tried reading the things written on net, but than i realised that i dont know or never seen ALOT of the commands written there. I'm learning very very basic c programming till this point of time. thanks for your help.
I'm supposed to read in the time given by the user.
There are 2 ways of doing it.
1) using the 12hour clock
2) using the 24 hour clock
To read in the 12 hour clock i use this
printf ("Please enter time of entry: ");
but when i use this to read in the 24 hour clock, it always waits till i key in a alphabet. How so i just read in the numbers?
if i just use ("%f",&two->oneone.entery_times)
than i cant enter the "am" and "pm" part.
what to do? :confused:
Is there anyway to do stimulation of a car moving using very basic c programming commands? (this one is just curious, want to know only)
thanks for all you help... :) :D