Thread: Need help on C

  1. #16
    Registered User
    Join Date
    Apr 2005
    Posts
    12
    but do i get the logic correct?

    how do i want to put - user may only add 12 student ID and marks?

  2. #17
    Registered User
    Join Date
    Apr 2005
    Posts
    12
    Code:
    scanf("%c",&choice);
    I have that code on top right?

    Code:
         printf ("\n############################################\n"); 
         printf ("\nTest 1\n"); 
         printf ("\n############################################\n"); 
         printf ("\n[1] Enter Marks\n[2] View Marks\n[3] Back to Main Menu\n\n\n"); 
         printf ("You Choose:"); 
         scanf ("choice");
    where else should i put it?

  3. #18
    Registered User
    Join Date
    Feb 2005
    Posts
    26
    Are you using File I/O or not? You say you think you need to but if you don't need there are easier ways.

  4. #19
    Registered User
    Join Date
    Apr 2005
    Posts
    12
    what do i actually need to use inorder to accept input and later view it?

    and using function it the program is ok, right?

  5. #20
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > this is half of it. i seem dont understand anything.. gosh.. alot of errors...
    Post a small program which contains ONE thing you do not understand.

    Do NOT try and write the whole thing at once, dump the resulting mess on a message board and hope someone will fix it for you to a standard you can just hand in without any more thought.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed