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; }
Writing code for a program that prints images.. not sure how do this function. /** * Requires: Nothing. * Modifies: cout, drawer. * Effects: * Read filename fro

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site