How to initilize string?

I'm getting an error saying to many initializers. I'm aware now that i'm not initializing it correctly; therefore, can someone tell me what or how possibly I can initialize it correctly. I want the columns to be 5, which will refer to the alhphabet height. The two rows would be the two alphabets. For instance, row one, would be alphabet a, or row two would be alphabet b.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const string letters[5][2]=
{
	{				
"   _____   "	,					
"  /  _  \\  ",
" /  /_\\  \\ ",
"/    |    \\",
"\\____|__  /" },


{"__________ "
"\\______   \\"
 "|    |  _//"
" |    |   \\"
" |______  //"}
         


};
It should be const string letters[2][5] in this case. You would then print the letter A out like this.

1
2
3
4
	for(int i = 0; i < 5; i++)
	{
		cout << letters[0][i] << endl;
	}
Last edited on
Topic archived. No new replies allowed.