#include #include #include using namespace std; void OutputTable (ostream & outs); int main() { cout <<"This program just write various data to different output stream\n"; cout <<"Where do you want the output go (f/t/s)?"; char output; cin >> output; ofstream file; stringstream sstream; switch (output) { case 't': OutputTable (cout); break; case 'f': file.open("output.txt"); OutputTable (file); file.close(); break; case 's': OutputTable(sstream); string Table="*******************************\n"; Table = Table+sstream.str(); Table = Table+"*******************************\n"; cout <<"Here is the table\n"; cout <