Thread: compile issues

  1. #31
    Nasal Demon Xupicor's Avatar
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    179
    Quote Originally Posted by codecaine_21 View Post
    I have never seen the use of i+1 with printf.
    I just added 1 to i to make it show numbers 1 to 10 in the text message the user sees. While that may not be the case with some of us here, "normal people" are used to count things starting with 1, and not 0.

    If you are confused by it, you should experiment with printf. Before you do that, read the manual entry: printf - C++ Reference

  2. #32
    Registered User
    Join Date
    Sep 2010
    Posts
    63
    xupicor, i compiled the short program you wrote without the use of arrays. I see your use of i+1, cool trick! And sum += number; just takes each number you enter then adds it and stores it into sum. im about to take a look at the program with arrays now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compile crashes certain windows
    By Loduwijk in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2006, 09:05 PM
  2. compile program?
    By Goosie in forum C++ Programming
    Replies: 9
    Last Post: 06-22-2005, 02:26 PM
  3. dvv-cpp not able to compile?
    By Rune Hunter in forum C++ Programming
    Replies: 12
    Last Post: 10-23-2004, 06:36 PM
  4. Replies: 3
    Last Post: 03-27-2004, 12:15 PM
  5. compile once, compile twice ...error
    By Benzakhar in forum Windows Programming
    Replies: 6
    Last Post: 12-28-2003, 06:00 AM