for (i=0; i<n; ++i) { for (int j=0; j<+n; ++j) { if (j == k-1 || j == l-1) SetConsoleTextAttribute(hStdout, 4); else SetConsoleTextAttribute(hStdout, 6); cout << a[i*n+j] << ' '; } cout << '\n'; }