Looping.

This is a discussion on Looping. within the C++ Programming forums, part of the General Programming Boards category; > Or something like that. The getch() thing is right, right? Does it work? If it does, it's right! One ...

  1. #16
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > Or something like that. The getch() thing is right, right?
    Does it work? If it does, it's right!

    One thing that could be said about getch() is the fact that some compilers don't have it. It's non standard. So, this code will not be portable because of that. If that's not an issue for you right now, or you just don't have an opinion yet, don't worry about it. IMO, it's fine for such a small personal program.

    [EDIT]
    Oh, you need a semi colon after the call to getch() to be clear.
    [/EDIT]
    The world is waiting. I must leave you now.

  2. #17
    Registered User
    Join Date
    Aug 2002
    Posts
    14
    Well, I got it working, and I'm starting on switches in the book tomorrow, since it's too late for me to think right now. Anyway, I hope to make some improvements on it. Thanks again for your help.

  3. #18
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > Well, I got it working
    That's great.

    > I'm starting on switches in the book tomorrow
    Those are in the FAQ at this website, and are pretty simple.

    > Thanks again for your help.
    You're welcome.
    The world is waiting. I must leave you now.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. wierd looping effect after exporting 3ds to .x annimation
    By Anddos in forum Game Programming
    Replies: 3
    Last Post: 01-06-2009, 12:43 PM
  2. problems with prototype function looping
    By dezz101 in forum C Programming
    Replies: 5
    Last Post: 04-29-2008, 06:03 AM
  3. looping went berserk
    By miryellis in forum C Programming
    Replies: 7
    Last Post: 09-21-2004, 01:59 PM
  4. Looping questions
    By Peyote in forum C++ Programming
    Replies: 3
    Last Post: 09-15-2003, 11:01 PM
  5. looping and input
    By Kinasz in forum C Programming
    Replies: 2
    Last Post: 03-17-2003, 06:12 AM

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