I'm trying to print an array of characters, but I would like to print a newline after a fixed number of characters. So far I only can print a newline after the first fixed amount of characters are read. Can anyone point me in the right direction? 

```
    for ( int i = 0; i < (m_nWidth*m_nHeight); i++) {
        if (i != m_nWidth)
            cout << pMyPointer[i];
        else
        {
            printf("\n");
        }
    }

```