Thread: New to Programming

  1. #1
    Registered User
    Join Date
    Feb 2009
    Location
    Near Cedar Point, OH
    Posts
    1

    New to Programming



    Hello everyone! I'm taking my first class in C programming. I've been searching hours for a good command reference/definition guide. I'm looking for something that spells out the usage in detail the meaning of things. Example:

    // Two forward slashes means you are about to "comment out" the words that will follow, these comments will not effect the running of your program.

    \n This is a carriage return, returning you to the left of the next line below.

    It seems very elementary, but I've never taken a programming class before, and my instructor is a wiz at this stuff and skips a lot of defining, like %i, %f. Somewhere out there, someone must have compiled a list like this.

    Thanks, Jeff
    Ohio

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I would guess that many people have compiled such lists. Usually we call them "books", though.

  4. #4
    Registered User
    Join Date
    Feb 2009
    Posts
    138
    it's not good to veg out in class. if your instructor talks about something you don't understand, ask about it or he won't know you don't understand!

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Welcome to the forums, Jeff!

    \n This is a carriage return, returning you to the left of the next line below.
    This: \n is a newline char, which (stay with me), is C for two char's: The first one is the CR (carriage return), and the second one is a LF (line feed).

    In a DOS or Windows text file, the newline is expanded when the file is loaded from disk, into those two char's: CR/LF, so the file will display correctly.

    In Linux and Unix, the newline stays as a single char. (Which is why silly little editors like Notepad, can't display a Linux/Unix text file, correctly if they load up one.)

    May I recommend Ivor Horton's book, "Beginning C", for you? Great explanation of things, and lots of examples of problem solving, also.

Popular pages Recent additions subscribe to a feed