Thread: Need advice on small detail of my programming project

  1. #16
    Registered User
    Join Date
    Jun 2004
    Posts
    84
    Quote Originally Posted by tibu
    Hmmm I have figured it out. If I start out with n=1 and I add 1 to n everytime the loop is run; from the number 1 to the number 5 are only 4 numbers and not 5. Therefore I have to start out with n = 0.
    And you'll get 4 out of 5. Just because sombudy says that my code have bugs, doesn't mean they right. Yes, loop is executed 4 times, but you both forgetting one read operation before the loop. 4+1=5 ::

  2. #17
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Quote Originally Posted by iwabee
    And you'll get 4 out of 5. Just because sombudy says that my code have bugs, doesn't mean they right. Yes, loop is executed 4 times, but you both forgetting one read operation before the loop. 4+1=5 ::
    Heh, my bad
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM
  2. How to add a file to a project in bloodshed.
    By Smeep in forum C++ Programming
    Replies: 4
    Last Post: 04-22-2005, 09:29 PM
  3. Convert C++ project
    By gogo in forum Tech Board
    Replies: 6
    Last Post: 08-12-2004, 07:48 AM
  4. DJGPP project problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-08-2002, 07:16 PM
  5. almost done...help with small detail...
    By pancho in forum C Programming
    Replies: 1
    Last Post: 03-19-2002, 06:35 AM