Search:

Type: Posts; User: titanicmango

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    7,145

    Should I have initialized it differently? as in...

    Should I have initialized it differently? as in Post #3 when Eielef advised possibly using some constant sizes? eg 25x25 50x50

    With the array, once it initializes with 'd1' 'd2' the array doesnt...
  2. Replies
    14
    Views
    7,145

    hmm, now that i am using a different computer, it...

    hmm, now that i am using a different computer, it is working fine, thanks anyway. sorry for wasting time.
  3. Replies
    14
    Views
    7,145

    #include using namespace std; ...

    #include <iostream>

    using namespace std;

    int main()
    {
    int d1;
    int d2;
    int gameboard[d1][d2];
  4. Replies
    14
    Views
    7,145

    sorry the 2nd example is suppose to 2 seperate...

    sorry the 2nd example is suppose to 2 seperate print outs, seems to have put them together,

    iv re written them here.

    1st (what it is printing out)
    0 0 1 1 0
    0 0 1 1 0
    0 0 1 1 0
    0 0 1 1 0
    0...
  5. Replies
    14
    Views
    7,145

    the custom sized array doesnt seem to have an...

    the custom sized array doesnt seem to have an issue. will look into std::vector though, thanks for that advice.
    if i comment lines 23, 24. and compile/run, the program runs properly, (as i test iv...
  6. Replies
    14
    Views
    7,145

    newbie battle ships

    Hello, im trying to make a command prompt based battle ships game, with a little AI in placing the ships. I am only up to drawing the game board and i am already stuck. here is my current code.
    ...
Results 1 to 6 of 6