Printing in PuTTY

This is a discussion on Printing in PuTTY within the Tech Board forums, part of the Community Boards category; Hey guys,
I'm fairly new to C++ and programming in general and I have few questions regarding PuTTY. I am ...

Printing in PuTTY

Hey guys,
I'm fairly new to C++ and programming in general and I have few questions regarding PuTTY. I am currently in school majoring in computer scienece and in my C++ class our assignments consist of writing a program using PuTTY, printing it out, and handing it in. After I finish the program I start a script file, display the code using the " cat <filename> " command, compile the code, and then run the program. When I end the script file and proceed to print I find that the only printer that I can print to is the printer in the CIS computer lab about 1/2 mile away. What I would like to do is print this using my computer in my dorm room. I configured PuTTY to enable ANSI printing and to send the output to my printer. When I go to use the command " ansiprint -n -f <filename> " it says "Printing File: <filename>" but nothing prints.

My instructor told me that other people have run into this problem when trying to print to their own printers and that nobody knows for sure what causes it. She suggested it could possibly have something to do with printing being disabled in DOS, but doesn't know for sure. Like I said, I am fairly new to all of this and I was wondering if anyone knows of a soultion to this problem. I don't mind taking the 1/2 mile hike to the CIS Lab right now, but when it gets colder I'd much rather print my assignments from my dorm. Any help is appreciated.

Use the pscp program (available in the same place as PuTTY) to copy all the files of your program to your computer and print them from a normal editor.

The idea of writing the program on the remote computer through SSH is absurd in the first place. It would have been better to write it locally, then copy it over and compile it on the target. With Cygwin, you could even compile it locally and only copy it for the last bugfixing step.