I don't know what the problem on line 12 is.

void mkbrd(void)
    {
        for ( int y =0; y<8; y++) //accesses all columns in the array
            {
            for ( int x=0; x<8; x++) //accesses all rows in the array
                {
                brd[x][y].x= char (65+x); //assigns columns names A-H
                brd[x][y].y= y+1; //assigns rows numbers 1-8

                if ( y==1 || y==2 )//assigns top two rows to white
                    {
                    brd[x][y].clr="W";//Problem occured here
                    };

So what is a

brd[x][y].clr="W";//Problem occured here

Sorry, here it is:

struct attrib{
char x;
int y;
char cont;
char clr;
};

attrib brd[8][8];

Well char clr is a character not a string. If you want to assign to it, pass a character like

brd[x][y].clr = 'W';

Notice the single quotes..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.