I'm starting to design a basic minesweep type program. The minefield is going to be a two-dimensional array. When it prints out, the field gets shifted over one space in the 10th row since 10 is obviously larger than 9. Any suggestions on how to make it even?


Code:
#include <iostream>
#include <conio>
using namespace std;


void main()
{
        int row, col, x;
        col=0;
        row=0;
        x=1;

        cout<<"         1 2 3 4 5 6 7 8 9 10";
        char minefield[10][10];

        for (row=0; row<10; row++)
        {
                cout<<"\nRow "<<x<<":  ";
                x=x++;

                for (col=0; col<10; col++)
                {
                        cout<<" -";
                }

        }


        getch();
}