Search:

Type: Posts; User: jacobfreemaninc

Search: Search took 0.01 seconds.

  1. You should put a printf in every place leading up...

    You should put a printf in every place leading up to the "You Win!". You will see outputs for each step, and you can see where things go wrong...
  2. Please tell me you're kidding.

    Please tell me you're kidding.
  3. I use the same technique all the time... Very...

    I use the same technique all the time... Very helpful.
  4. Alright, the only time you use int player is...

    Alright, the only time you use int player is here:

    if (player == 0)
    symbol = 'b';
    else if (player == 1)
    symbol = 'r';

    There is no way int player can ever equal 1 because you never refer...
  5. What is the purpose of int player in int isWin?

    What is the purpose of int player in int isWin?
  6. Replies
    2
    Views
    3,904

    Thank you, I see that it was stupid to close the...

    Thank you, I see that it was stupid to close the files without re-opening them. I just got rid of the close() operators and it works perfectly now. Once again thanks...
  7. I looked at your code again, in "int isWin(int...

    I looked at your code again, in "int isWin(int player, Cell game_board[6][7], int size);" & "if(isWin(0, game_board, 4) == 1)". I don't see the point of int player, it prevents the "if" statement...
  8. Please indicate what part of the code is supposed...

    Please indicate what part of the code is supposed to do that, because I don't see where that is, please make sure you add comments to your code in the future...
  9. Replies
    9
    Views
    1,590

    Make sure you don't overcomplicate your...

    Make sure you don't overcomplicate your applications, if there is an automated way of doing something, use it, don't try to make your own way up.
  10. Replies
    2
    Views
    3,904

    How do I clear ifstream!?

    I am trying to write a simple spell checking program but no matter what I do it will only read through the word list once and all other times it just thinks it is the end of the file and does a check...
Results 1 to 10 of 10