putting an "ascii art" printf into a char array ?
<p>I have this object </p>

<pre><code>void Game::Logo(void)
{
    printf("                 _ _ \n");
    printf("                (_|_)\n");
    printf("   __ _ ___  ___ _ _ \n");
    printf("  / _` / __|/ __| | |\n");
    printf(" | (_| \__ \ (__| | |\n");
    printf("  \__,_|___/\___|_|_|\n");
    printf("                     \n");
    printf("\n");
}
</code></pre>

<p>In order for me to create an array out of this, I have to go through each line and put a <code>,'',</code> between anything, and when the actual name I'm working with is much larger, it's going to take forever and prone to human error. </p>

<p>How would I create a function that could do this all for me without error, and potentially diffrent options for array size according to the size of the "logo".</p>

<p>would I go about storing line each into a string:</p>

<pre><code>string row0 = "                 _ _ ";
string row1 = "                (_|_)";
string row2 = "   __ _ ___  ___ _ _ ";
string row3 = "  / _` / __|/ __| | |";
string row4 = " | (_| \__ \ (__| | |";
string row5 = "  \__,_|___/\___|_|_|";
string row6 = "                     ";
</code></pre>

<p>and then creating a function of this sort:</p>

<pre><code>printfToArray(int numRow,int numCol, string rows)
{
    for (int i = 0; i &lt; numRow; i++)
    {
        //create an array of char logo[numRow][numCol]
        //numCol is the number of max space require, so this case, 23 because of \n as well
        //then copy it somehow into the array within loop
    }
}

int numRow = 7; //because 7 strings
</code></pre>

<p>as these seems like the only way I can remotely think of, but even so I don't understand how I would go about doing this.</p>