Hi All,

I just have a general question which i hope someone can solve for me.
I'm trying to create a .a lib file, that passes paramters etc, but i keep getting a stupid compiler erro, can someone tell me what's wrong with this code?

Code:
#include <iostream.h>


//The black Co-Ordinate
char coutblack[8](int srow)
{
char cb[8];
switch(srow)
{
case 0 : cb[8] = {' ' , ' ' , ' ' , ' ' , '|' , ' ' , ' ' , ' ' , ' ' }
	break;
case 1 : cb[8] = {' ' , ' ' , ' ' , '@' , '@' , '@' , ' ' , ' ' , ' ' }
	break;
case 2 : cb[8] = {' ' , ' ' , '@' , '@' , '@' , '@' , '@' , ' ' , ' ' }
	break;
case 3 : cb[8] = {'-' , '@' , '@' , '@' , '@' , '@' , '@' , '@' , '-' }
	break;
case 4 : cb[8] = {' ' , ' ' , '@' , '@' , '@' , '@' , '@' , ' ' , ' ' }
	break;
case 5 : cb[8] = {' ' , ' ' , ' ' , '@' , '@' , '@' , ' ' , ' ' , ' ' }
	break;
case 6 : cb[8] = {' ' , ' ' , ' ' , ' ' , '|' , ' ' , ' ' , ' ' , ' ' }
	break;
default: 
	break;
}
return cb[8];
}
The goal of the code is to return the value of cb[8] based on whatever srow is inputed as i.e. 1 however, i keep getting a few stupid little errors any help would be greatly appreciated!

Thanks

Regards,

Smithy.