Search:

Type: Posts; User: Gabu

Search: Search took 0.01 seconds.

  1. Thread: ASCII Snake Game

    by Gabu
    Replies
    4
    Views
    6,002

    Well, I HAD something I was going to report, but...

    Well, I HAD something I was going to report, but it sounds like you know about it already.
  2. Replies
    17
    Views
    4,209

    You have a ">>" where it should be a "

    You have a ">>" where it should be a "<<" there.
  3. Wouldn't it be easier to take the "If you wish to...

    Wouldn't it be easier to take the "If you wish to translate another letter please type it and press Enter,otherwise press ESC to exit:" part out of the if/else/if/else/etc. bit and stick it below all...
  4. Well, not necessarily, you could do this for...

    Well, not necessarily, you could do this for numbers out of that range:


    #include <iostream.h>
    #include <stdlib.h>
    #include <ctype.h>

    int main()
    {
  5. You can't. A variable can only be one single...

    You can't. A variable can only be one single type.

    However, the numbers 0 through 9 still are characters, as well, so typing in a number would work with a character variable.
  6. Thread: Caught in a Loop

    by Gabu
    Replies
    16
    Views
    3,407

    That means that the functions "prompt_gallons",...

    That means that the functions "prompt_gallons", "prompt_miles", "prompt_done", and "average" are not defined yet.
  7. Replies
    7
    Views
    1,607

    You could try this: int fiveChosen; /* this...

    You could try this:


    int fiveChosen; /* this would occur higher up, not right above what follows it here */

    do
    {

    fiveChosen = 0;
  8. Thread: cin?

    by Gabu
    Replies
    5
    Views
    2,569

    Oh, I get it. No, cin by itself doesn't do...

    Oh, I get it.

    No, cin by itself doesn't do that, but you can use the function cin.get() to do that.

    Just add this:


    cin.get();...where you want it to do that.

    Oh, and if the program...
  9. Thread: cin?

    by Gabu
    Replies
    5
    Views
    2,569

    Please elaborate; I can't think of a case where...

    Please elaborate; I can't think of a case where cin doesn't wait until enter is pressed.
  10. Replies
    7
    Views
    1,187

    I see the problem, you declared "human" with the...

    I see the problem, you declared "human" with the following line:


    Player human();

    Leave out the () part; those are only there if you are not using a default constructor and instead are using...
  11. Replies
    17
    Views
    4,209

    First error: You're declaring multiple classes...

    First error:

    You're declaring multiple classes like multiple variables. You can't do that; I have a feeling you didn't mean to use "class".

    Second error:

    You either missed a variable type,...
  12. Thread: Excuses

    by Gabu
    Replies
    8
    Views
    5,204

    Such supportive and loving parents! :p

    Such supportive and loving parents! :p
  13. Thread: Illegal Operation

    by Gabu
    Replies
    15
    Views
    2,353

    "I AM NOT dividing." To get the remainder,...

    "I AM NOT dividing."

    To get the remainder, first you must divide. Modulus does that; therefore you ARE dividing.

    Plus, even if it didn't, what's the remainder when dividing by zero? It'd...
  14. Replies
    4
    Views
    1,087

    Three things: 1. I believe the segmentation...

    Three things:

    1. I believe the segmentation error came from the fact that you used a forward slash after "c:" instead of a backward slash, because it worked after I changed it to a backward slah....
  15. Explain

    I'm a bit shaky on how the "shuffle" and "deal" functions work regarding shuffling your deck and dealing five cards. If you could explain in plain English what's happening there, I might be able to...
  16. Replies
    3
    Views
    2,268

    Using a huge 3D array

    I wasn't sure whether to post this in the game programming forum or this one, but because it's more of a technical thing, I'm posting it here.

    Here's my problem. I'm making a text-based RPG, and...
Results 1 to 16 of 16