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...
Type: Posts; User: Brian29
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...
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....
Cool, thanks for the help.
So something along the lines of
int main()
{
TicTacToe xogame;
xogame.makeMove();
So g doesn't necessarily need to called g, but can be called really anything? Also would using getmakeMove(); work as well?
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...
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 );
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,...
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.
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...