Thread: CarPark Mgmt Sys

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    2

    Unhappy 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.

  2. #2
    .........
    Join Date
    Nov 2002
    Posts
    303
    Post what you have so far and I'm sure someone will help.

  3. #3
    eh ya hoser, got a beer? stumon's Avatar
    Join Date
    Feb 2003
    Posts
    323
    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.
    The keyboard is the standard device used to cause computer errors!

  4. #4
    Registered User
    Join Date
    Apr 2003
    Posts
    2
    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..

  5. #5
    eh ya hoser, got a beer? stumon's Avatar
    Join Date
    Feb 2003
    Posts
    323
    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.
    The keyboard is the standard device used to cause computer errors!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Factorial
    By foxman in forum Contests Board
    Replies: 27
    Last Post: 07-11-2008, 06:59 PM
  2. howto add sys call using modules only ?
    By pinkeshzaveri in forum Linux Programming
    Replies: 1
    Last Post: 08-23-2005, 12:28 PM
  3. Displaying a balloon tip on sys trap app at startup
    By BobS0327 in forum Windows Programming
    Replies: 0
    Last Post: 03-25-2005, 08:35 PM
  4. Memory-Resident programs and Sys files
    By Powerfull Army in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 09-15-2002, 09:13 PM
  5. checking sys commands
    By Denethor2000 in forum C++ Programming
    Replies: 9
    Last Post: 03-27-2002, 07:43 PM