Search:

Type: Posts; User: Brian29

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,219

    Error 1 error C2146: syntax error : missing...

    Error 1 error C2146: syntax error : missing ';' before identifier 'gameOnOff' line 14

    Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support...
  2. Replies
    4
    Views
    1,219

    Need help with Tic Tac Toe program

    I'm writing a program for a Tic Tac Toe game. I have it together but it is riddled with errors seemingly all stemming from one piece of code in my header file. The "OnOff" and "gameOnOff(void)" part....
  3. Replies
    10
    Views
    1,331

    Cool, thanks for the help.

    Cool, thanks for the help.
  4. Replies
    10
    Views
    1,331

    So something along the lines of int...

    So something along the lines of




    int main()
    {
    TicTacToe xogame;
    xogame.makeMove();
  5. Replies
    10
    Views
    1,331

    So g doesn't necessarily need to called g, but...

    So g doesn't necessarily need to called g, but can be called really anything? Also would using getmakeMove(); work as well?
  6. Replies
    10
    Views
    1,331

    Trying to understand a piece of code.

    I am trying to understand a piece of code. I have never seen this used before and can't seem to find any info on it. What is the purpose of the "g" and "g."? The g does not appear anywhere else in...
  7. Replies
    4
    Views
    1,079

    I used the float because of the division portion....

    I used the float because of the division portion. 15 / 2 gave me 7 rather than 7.5.

    I'm still not quite sure how to end on 1 input. I tried:




    scanf( "%d",&x );
    scanf( "%d",&y );
  8. Replies
    4
    Views
    1,079

    Need help with array program.

    I'm writing a program using an array.

    Write a program that asks for user input of two integers, write the code so that the program does the sum of two integers, the subtraction of two integers,...
  9. Replies
    4
    Views
    1,280

    This actually worked to fix the 4 problem, thank...

    This actually worked to fix the 4 problem, thank you.

    We have learned to write functions but I'm not very clear on how do it. I'm taking this class online and have had to learn most on my own.
  10. Replies
    4
    Views
    1,280

    Need help with prime number C program.

    I'm working on a program for a class:

    Write a program that asks for an integer from the user and determines whether or not the integer is odd or even, then determines if that number is a prime...
Results 1 to 10 of 10