Hi guys, I'm new to this but I have no idea what is wrong with my code and I'm going insane trying to figure it out and its due very soon! I would appreciate any help you can give me!
Here's my code:
#include <iostream>
#include <iomanip>
#define ROWS 2
#define COLUMNS 2
class screen
{
static int Row_Position;
static int Column_Position;
public:
const static char Screen_Array [ROWS][COLUMNS];
screen ();
void print();
};
using namespace std;
int main()
{
screen A;
A.print();
return 0;
}
screen::screen ()
{
Row_Position = 0;
Column_Position = 0;
char Screen_Array [ROWS][COLUMNS]={'X','X','X','X'};
}
void screen::print()
{
int i;
int j;
for (i=0; i<3; i++)
{
for(j=0; i<3; i++)
cout << Screen_Array [i][j];
}
}