Like Tree2Likes

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

This is a discussion on Question on my Program for intro to C calculating kilomters per liter. within the C Programming forums, part of the General Programming Boards category; ahh return 0 should be after my loop ahh...

  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,323
    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,323
    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

Page 2 of 2 FirstFirst 12
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, 08:12 PM
  5. Replies: 8
    Last Post: 02-23-2002, 08:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21