raguin respondió:
¿Algo asi? #include <iostream.h> #include <fstream.h> ofstream printer; ostream_withassign screen; void main() { printer.open("LPT1"); screen = cout; cout << "This writes to the screen" << endl; // Re-direct cout to the printer cout = printer; cout...