0
You are placing an Endl after the 'F', it will break the line and stay in front of the spaces of the previous line.
Try this:
for(int i = 0; i<18; i++){
cout<<'F'<<(i+1);
for(int j = 0; j<4; j++){
cout<<poltona[i][j];
if(j==3)
cout<<endl;
}
}
Use horizontal tab (t') and line break (n') to format your line. Ex.:
cout << "\nF" << (l+1) << " \t";
andcout << poltronas[l][c] << "\t";
. Posting images is not a welcome attitude on this site. Make a Tour and understand why.– anonimo