Thread: need help please urgently

  1. #1
    Unregistered
    Guest

    Angry need help please urgently

    i want to make a program using pointer&structure about student uni initialization for example:

    Input student name:_
    Input Student's mark:_ --->(at least 5 students and 5 subjects for each student)

    after we input
    Please input your name:
    1.Press 1 to see the result
    2.press 2 to see the mark
    3.press 3 to see the average
    4.press 4 to quit


    Thank you

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    88
    mhm, but sorry - i didn't get your question...

    do you expact us to write the program for you?
    Hope you don't mind my bad english, I'm Austrian!

  3. #3
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    531
    Really we did not get your point.

    Zahid

  4. #4
    Normal vector Carlos's Avatar
    Join Date
    Sep 2001
    Location
    Budapest
    Posts
    463
    >> do you expact us to write the program for you?
    Well, we won't ;°)=), but I can help with an idea on how to start with your homework (?) .
    1. Get user input (first students name, then marks for 5 predefined subjects) and store them in whatever you want.
    Some error checking routines would be nice, e.g. allow no letters entered for marks...

    2. Process in a loop numeric keys 1 to 4 (drop all others).
    For keys 1-3 call the required functions, and quit if 4 pressed.

    If you start from scratch (this isn't really the case, unless you use ASM ;°)) this 'project' can be done on one evening.
    First do the design work on paper, and implement when you've got everything planned. Coding is easier, if you know what you want.

    Have fun and be creative!

  5. #5
    Unregistered
    Guest

    Question malloc

    what is malloc?can i switch malloc into arrays?
    how to getting quit from a program for example: if we pree 3 we want to quit..
    thanks

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    malloc() is used to allocate memory dynamicly. Use free() to free the memory when you're done with it.

    If you are in the 'main' function, you can simply use 'return 0;' to make main exit. If you're in another function, you can' use exit() to do the trick.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Urgently in need of help...!!!
    By patron in forum C Programming
    Replies: 8
    Last Post: 02-17-2008, 11:12 PM
  2. Need urgently help!
    By Frandy in forum Windows Programming
    Replies: 4
    Last Post: 03-05-2005, 08:02 AM
  3. Need help urgently
    By jstevanus in forum C++ Programming
    Replies: 15
    Last Post: 12-09-2004, 12:30 PM
  4. Help urgently needed, please =(
    By *Michelle* in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-03-2003, 07:14 AM
  5. Need Help Urgently
    By chener in forum C Programming
    Replies: 3
    Last Post: 06-26-2002, 05:21 PM