#include #include using namespace std; /* Download, compile, and run it like this: cd wget https://markmeretzky.com/fordham/1600/src/nested/solid.C compile solid solid | /usr/bin/pnmtopng > solid.png ls -l solid.png (Make sure you created the file solid.png.) file solid.png (Make sure that the file contains a png image.) mv solid.png public_html Then point your web browser at https://storm.cis.fordham.edu/~jsmith/solid.png */ int main() { const int nrows {35}; //number of rows of pixels const int ncols {40}; //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 215 0\n"; //gold } } return EXIT_SUCCESS; }