Thread: Basic C menu

  1. #16
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > the compiler will assume
    Are you sure? I wouldn't trust it.
    The world is waiting. I must leave you now.

  2. #17
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    the compiler will assume whatever function you dont include a header for is extern and search the standard headers then headers in the directory your working from for the matching function
    I suppose that will do.

    >Are you sure? I wouldn't trust it.
    Every compiler I know of will do this, but you can never be sure. So it's always best to include the proper headers.

    >i dont get how this works can someone explain?
    >scanf("%1[1234]c%*c",&choice);
    scanf will read one character which can only be within the range of 1 - 4. It will then read the trailing newline in an attempt to clear the buffer.

    -Prelude
    My best code is written with the delete key.

  3. #18
    Registered User
    Join Date
    Mar 2002
    Posts
    7

    Wink

    cheers every1 for you help it is much appreciated and i understand the simple stuff and it has been very useful! Seems like i accidentally started of a bit of a tiff, lol. Cheers guys.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 10:25 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. Constructive Feed Back (Java Program)
    By xddxogm3 in forum Tech Board
    Replies: 12
    Last Post: 10-10-2004, 03:41 AM