Thread: Problems with an If loop..

  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をこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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をこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 12-01-2008, 10: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, 08:26 PM
  4. simple collision detection problems
    By Mr_Jack in forum Game Programming
    Replies: 0
    Last Post: 03-31-2004, 04:59 PM
  5. problems with greatest to least sorting
    By Mr_Jack in forum C++ Programming
    Replies: 2
    Last Post: 03-11-2004, 10:12 PM