Will your instructor vary up the input file any? Since you are hard-coding the array dimensions anyway you could potentially (though with loss of flexibility) get your input via 3 nested for loops stepping through the array.
This
if(c>3)
{
c=0;
r++;
cout << endl;
}
if(r>12)
{
r=0;
l++;
}
c++;
may or may not work but it's kinda kludgy either way.