-
CarPark Mgmt Sys
Hi I'm new to C.I need to dev a car park mgmt sys.the steps are:
Ask user for input(either entrance X or Y), car plate number, time of entrance. if input is valid(with validation), show"Barrier Up" on screen. Vice versa when the car goes out,Ask user for input(either exit A or B), car plate number, time of exit.Have to store this in a text file..Pls help. thanks a thousand times.
:( :confused:
-
Post what you have so far and I'm sure someone will help.:)
-
What do you have for code so far? We will be more than happy to help you figure out some specifics. Shows us what you have and we will help you get it working. Otherwise, check out the FAQ.
-
Sorry...I don't know how to start it at all....i'm really weak in programming..My ques says I need structures to store the car number time in/out etc... pls help..My program should run in the command line..:(
-
if your program should run in the command line, then you need
Code:
int main(int argc, char *argv[])
Other than that, I would declare some structs to hold the info, start by getting input from the user, that can be found in the FAQ, then write that info to a file using fwrite. get some more input from the user and fread() the file to get the previous info, then fwrite that info again with the changed values of him leaving, which exit, and time. then fclose() the file. and exit(0). If you have any troubles coding something like that, you read the FAQ, give us your code, and we will be more than happy to edit some things to get it working and help you understand why it needs to be the way it is.