Problems with an If loop..

This is a discussion on Problems with an If loop.. within the C++ Programming forums, part of the General Programming Boards category; Good point..i removed one. Didn't really seem to be the root of the problem though....

  1. #46
    Registered User
    Join Date
    Jan 2008
    Posts
    24

    well

    Good point..i removed one. Didn't really seem to be the root of the problem though.

  2. #47
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,413
    Quote Originally Posted by Sedvan View Post
    Good point..i removed one. Didn't really seem to be the root of the problem though.
    Read your code and post it here.
    As many have said before you, it's a logic problem. Code is placed where it shouldn't be - incorrect position.
    So read the code here, see what it does. And then explain how exactly the logic must be to make it work.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #48
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    >I know you have, but I can't remember where >_<
    Post 31.

    To the OP: perhaps a different way of explaining indentation would be helpful:

    http://cprogramming.com/tutorial/style.html
    http://cprogramming.com/tutorial/sty...nventions.html
    http://www.cprogramming.com/tutorial...adability.html

  4. #49
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,413
    Quote Originally Posted by robwhit View Post
    >I know you have, but I can't remember where >_<
    Post 31.
    Must have missed it -_-
    Thanks.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Page 4 of 4 FirstFirst 1234
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 12-01-2008, 09:09 AM
  2. "for" loop problems....
    By hayai32 in forum C Programming
    Replies: 4
    Last Post: 05-04-2005, 01:20 AM
  3. Scope And Parameter Passing
    By djwicks in forum C Programming
    Replies: 6
    Last Post: 03-28-2005, 07:26 PM
  4. simple collision detection problems
    By Mr_Jack in forum Game Programming
    Replies: 0
    Last Post: 03-31-2004, 03:59 PM
  5. problems with greatest to least sorting
    By Mr_Jack in forum C++ Programming
    Replies: 2
    Last Post: 03-11-2004, 09:12 PM

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