help my array
I want my code to look like with * as each value for the array
{ * * * }
{ * * * }
{ * * * }
1 2 3 4 5 6 7 8 9 10
|
const int siz = 2;
char Play[siz][siz];
for (int i=0;i<siz;i++)
{
for (int k=0;k<siz;k++)
cout << "Row" << i+1 << play[i][k]<< "*";
cout << endl;
|
can someone please help me
1 2 3 4 5 6 7 8
|
for(int row = 0; row < rows; ++row)
{
for(int column = 0; column < columns; ++column)
{
std::cout << '*';
}
std::cout << std::endl;
}
|
Topic archived. No new replies allowed.