Search:

Type: Posts; User: diego

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,960

    that got it working. I had it declared in the...

    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.
  2. Replies
    5
    Views
    1,960

    not setting attack to false was a big mistake....

    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.
  3. Replies
    5
    Views
    1,960

    not selecting random number again

    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...
  4. Replies
    4
    Views
    3,472

    thanks Thinias that got it working. Is it...

    thanks Thinias that got it working. Is it possible to have a structure inside a class?
  5. Replies
    4
    Views
    3,472

    initializing structure in 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...
  6. Replies
    4
    Views
    5,105

    ohh ok. thanks for the help tabstop.

    ohh ok. thanks for the help tabstop.
  7. Replies
    4
    Views
    5,105

    Thanks put the files in the same project and it...

    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...
  8. Replies
    4
    Views
    5,105

    undefined reference to

    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...
Results 1 to 8 of 8