Image

Imagethegeekmeister wrote in Imagecpp

i know there are problems with my coding, but i'm teaching myself so i have to ask the simple questions here.

#include
[Error: Irreparable invalid markup ('<iostream.h>') in entry. Owner must fix manually. Raw contents below.]

i know there are problems with my coding, but i'm teaching myself so i have to ask the simple questions here.

<lj-cut text="the source code">#include <iostream.h>

int b[3][3];
char B[3][3];
int y, x, p, j, k;
char o(int p, int x, int y);

main()
{b[1][1]=0;
b[2][1]=0;
b[3][1]=0;
b[1][2]=0;
b[2][2]=0;
b[3][2]=0;
b[1][3]=0;
b[2][3]=0;
b[3][3]=0;
B[1][1]=;
B[2][1]=_;
B[3][1]=_;
B[1][2]=_;
B[2][2]=_;
B[3][2]=_;
B[1][3]=_;
B[2][3]=_;
B[3][3]=_;
p=1;
while(p=1)
{cout << "player one, take your turn by inserting the column and row you wish to play, starting at the top left corner\n";
cin >> x;
cin >> y;
//int b[x][y]=1;
p=2;}
while(p=2)
{cout << "player one, take your turn by inserting the column and row you wish to play, starting at the top left corner\n";
cin >> x;
cin >> y;
//int b[x][y]=2;
p=1;}
char o(int p, int x, int y);
}
return 0}
char o(int p, int x, int y}
{while(p=1)
{while(int b[x][y]=1);
{char B[x][y]=x}}
while(p=2)
{while(int b[x][y]=2);
{char B[x][y]=o}}</lj-cut>

the errors i get trying to compile it are
<lj-cut text="the errors">scratch.C: In function `int main()':
scratch.C:18: parse error before `;'
scratch.C:19: `_' undeclared (first use this function)
scratch.C:19: (Each undeclared identifier is reported only once
scratch.C:19: for each function it appears in.)
scratch.C: At top level:
scratch.C:42: parse error before `return'
scratch.C:43: parse error before `}'
scratch.C: In function `char o(...)':
scratch.C:45: variable-sized object `b' may not be initialized
scratch.C:45: definition of array `int b[((x - 1) + 1)][((y - 1) + 1)]' in condition
scratch.C:46: variable-sized object `B' may not be initialized
scratch.C:46: parse error before `}'</lj-cut>

all of these errors really don't mean anything to me. explain them?