and it tells me i have one unresolved exturnal.
Type: Posts; User: Neoground1
and it tells me i have one unresolved exturnal.
how can that be so when i declared it as select_computer_move(int []) and defined it as select_computer_move(gamestate); and gamestate is an array?
Yeah i remembered that my teacher did that, so i fixed it. Um now when i compile i get this error message.
MichaelNeill.obj : error LNK2001: unresolved external symbol "int __cdecl...
o this is a tic tac toe game
When i use
nth_next_game(x, gamestate[9]);
I get this error;
C:\Program Files\Microsoft Visual Studio\MyProjects\Tic Tac Toe\MichaelNeill.cpp(131) : error C2664: 'nth_next_game' :...
I was also wondering if there is a way to skip a line of data when you are reading it from a file. This is what im tring to do. I am reading in data from a file. The file has 4 lines of data (40...
ohhhhhhh. so thats all it does?
I know that this is a stupid question, but I was asleep in class when the teacher explaned it and my book doesn't give a clear cut answer. So can anyone help me?
Ok i changed my implimentation of safe(blah blah) to bool safe (blah blah). Is that what yall where talking about?
Well i guess im not seeing the differance between
bool safe(int);
bool safe(int gamestate[9])
{
}
Umm safe is declared with an int argument. Then later on I use add safe(int gamestate[9]) that is what you are supposed to do. Now if I am not supposed to use the line if (safe(Game[9])) like that...
source.obj : error LNK2001: unresolved external symbol "bool __cdecl safe(int)" (?safe@@YA_NH@Z)
Would anyone know why I get this message when ever i try to run my program.
#include...
Can anyone help me. I have a bit of code that i need for my next project (anouther damn tic tac toe project) but I can't seem to get it to work. This is the code my teacher gave in class so its...
Basically im trying to write a algorithm that will check all the differant squares for an 'x'. If there are 2 x's in a row, colum, or dialgnal then move to the square to block it. Thats all i need....
#include <iostream>
#include <string>
using namespace std;
bool endgame=false;
int rungame();
char board[9]={0,1,2,3,4,5,6,7,8};
Hey guys there is some code that i need to finish my program, well at least the easy way, but I dont understand it. Im writting a tic tac toe program where the computer must never be beaten. This...
char row[3]={0,1,2};
row[0]=(board[0])&&(board[1])&&(board[2]);
Will this code work to assign the first number of the array (row[0]) these three values? Visual Studio doesn't pickup on any...
If you have a bunch of if statements saying if somthing does not equal somthing else do this. Then later on in the same string can you say if somthing does equal something else? Juz wondering.
Welp once again you can disregaurd that last question. Ill try to save any responsis for when I don't know how to answer the question my self.
never mind guys.....didn't see that the board array wasn't a char. But why when ever my board is printed does the computer make a beep?
#include <iostream>
#include <string>
using namespace std;
bool endgame=false;
int rungame();
int board[9]={0,1,2,3,4,5,6,7,8};
O and juz to check. If I make a global array and then say something like this
array[0]='x';
That means that the first number in the array is givin the value of X. Well will that value...
I take it that static means global, or where you juz giving me an example?
Ok.......I was wondering how the function would work? If I use an array to store the board in and then I give the blocks (numbers of the array) an value of x or o (the array is a char). So if the...
MethodMan Im not quit understanding what you mean by method. Is method supposed to be an array or function?