Search:

Type: Posts; User: howardqd

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    3,330

    im makeing a battleship program. how do i...

    im makeing a battleship program. how do i randomly place ships on the board?
  2. Replies
    8
    Views
    3,330

    o ok thanks alot. i just wanted to make sure

    o ok thanks alot. i just wanted to make sure
  3. Replies
    8
    Views
    3,330

    isnt it simply cin>>numb ?

    isnt it simply cin>>numb ?
  4. Replies
    8
    Views
    3,330

    the whole thing is there and the scaf is if...

    the whole thing is there and the scaf is if highlighed



    #include <iostream>
    #include <windows.h>

    using namespace std;
    int choose(){
    int numb;
  5. Replies
    8
    Views
    3,330

    convert printf int cout

    can someone help me convert this into cout?


    scanf( "%d", &numb );



    cout << " A B C D E F G H I J K L\n";
    cout << "----------------------------\n";
  6. Replies
    12
    Views
    6,833

    all i want to do is find a way to randomly place...

    all i want to do is find a way to randomly place ships on the board to that the two player can guess the coordinates. its a simple battleship game
  7. Replies
    12
    Views
    6,833

    ok and another thing is that im missing the rest...

    ok and another thing is that im missing the rest of my shoot method but idk how i would write it out im confused
  8. Replies
    12
    Views
    6,833

    i try to format the code but i guess the forum...

    i try to format the code but i guess the forum disables my formatting. i did the corrections that you showed me i feel like a silly one for missing that but now i tried to run it again and it says :...
  9. Replies
    12
    Views
    6,833

    i did that and now im gettin new error and im...

    i did that and now im gettin new error and im just confused now. here my code :




    #include <stdio.h>
    #include <iostream>
    #include <iomanip>
    using namespace std;
  10. Replies
    12
    Views
    6,833

    i indented it the proper way.

    im sorry for all of that. my compiler didnt have a format option. but i tried to compiled it and i declared choose in the beginning and its giving me these other errors :

    In function `void...
  11. Replies
    12
    Views
    6,833

    i fixed that part but im still having errors

    i fixed that but im still gettin erros. heres my code



    #include <stdio.h>
    #include <iostream>
    #include <iomanip>
    using namespace std;
    int main () {
    int choose;
  12. Replies
    12
    Views
    6,833

    help with battleship program

    im doing a battleship program for my c++ class and i keep gettin these errors when i compile:


    line

    84 `grid' undeclared (first use this function)

    84 `y' undeclared (first use this...
Results 1 to 12 of 12