#include #include using namespace std; //Run it like this: ./a.out | /usr/bin/pnmtopng > solid.png // ls -l // file solid.png // cp solid.png public_html int main() { int nrows {200}; //number of rows of pixels int ncols {300}; //number of columns of pixels cout << "P3\n" << ncols << " " << nrows << "\n" << 255 << "\n"; for (int row {0}; row < nrows; ++row) { for (int col {0}; col < ncols; ++col) { cout << "255 255 0 \n"; //yellow } } return EXIT_SUCCESS; }