Thread: Question on my Program for intro to C calculating kilomters per liter.

  1. #16
    Registered User
    Join Date
    Oct 2012
    Posts
    20
    ahh return 0 should be after my loop ahh

  2. #17
    Registered User
    Join Date
    Oct 2012
    Posts
    20
    i mean not at all

  3. #18
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,907
    By "Codeblocks" I mean the programming IDE "Code::Blocks"

    (Assuming that this is the program which you are using to write these C programs) Look at the top of your window, you will see "File" "Edit" "View" "Search" -> If you keep going along there, you will see "Plugins"
    Fact - Beethoven wrote his first symphony in C

  4. #19
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,907
    And if you omit return 0 from the end of you main, and you are using your program in something like Window, consider your program a random error generator for Windows.
    Fact - Beethoven wrote his first symphony in C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Grades calculating program help please!
    By hotshotennis in forum C Programming
    Replies: 93
    Last Post: 04-24-2012, 12:08 PM
  2. C Program Not Properly Calculating
    By andynov123 in forum C Programming
    Replies: 16
    Last Post: 09-18-2011, 03:27 PM
  3. Calculating FPS for my OpenGL program
    By C+noob in forum Game Programming
    Replies: 1
    Last Post: 10-09-2005, 01:22 PM
  4. Replies: 2
    Last Post: 11-10-2003, 09:12 PM
  5. Replies: 8
    Last Post: 02-23-2002, 09:50 PM