that got it working. I had it declared in the function. I changed it to global and it worked. thanks a lot. I couldn't figure out the problem.
Type: Posts; User: diego
that got it working. I had it declared in the function. I changed it to global and it worked. thanks a lot. I couldn't figure out the problem.
not setting attack to false was a big mistake. your code makes perfect sense and is much better but I tried it and it is still giving repeating coordinates.
I'm working on the game battleship on c++ and everything works out great except for the part that its the AI turn to take a shot. I got it to work with the AI picking a random number, but it...
thanks Thinias that got it working. Is it possible to have a structure inside a class?
I'm doing an practice exercise from a book and I am having problems with initializing an array structure in a class.
I get multiple errors. one says a brace-enclosed initializer is not allowed here...
ohh ok. thanks for the help tabstop.
Thanks put the files in the same project and it worked. would have never figured that out by myself.
Just a quick question when I added the files to the project it says select the targets this file...
I'm learning c++ from the book starting out with c++ and I'm in the chapter of oop. There is an example in the book that I tried to do ,but I get a compile error. the error says undefined reference...