The way you are initializing the s[26]
array is suitable only at declaration.
Here is how you can do it in your code:
struct letter
{
string lines[5];
};
letter s[26] =
{
{
"..*..",
".*.*.",
".***.",
".*.*.",
".*.*."
},
{
".**..",
".*.*.",
".***.",
".*.*.",
".**.."
}
};
Or even better, if you don't really need the letter
structure:
string letter[26][5] =
{
{
"..*..",
".*.*.",
".***.",
".*.*.",
".*.*."
},
{
".**..",
".*.*.",
".***.",
".*.*.",
".**.."
}
};