Writing code for a program that prints images not sure how d
Writing code for a program that prints images.. not sure how do this function.
/**
* Requires: Nothing.
* Modifies: cout, drawer.
* Effects:
* Read filename from user
* concatenate filename with .bmp
* Write image to file.
* Print \"[Wrote filename]\"
*/
void writeFile(const Graphics& drawer);
Solution
void writeFile(const Graphics& drawer) { string fileName = \"\"; cin >> fileName; fileName = fileName + \".bmp\"; drawer.writeFile(fileName); cout << \"[Wrote \" << fileName << \']\' << endl; }
