1. Enable Printing

To be able to print from printers in any computer labs on campus, you need to enable your printing first.

You can enable your printing through this link.

2. Using TeraPrint in hercules

You can print your program file and program output file in hercules. Here is the link showing you how to do it:

Using Printers in Hercules

3. Tips on printing with TeraPrint command

When you use TeraPrint in hercules, it only prints up to 80 characters in each line.
Therefore, do not have too much information in one line.
You can use inline documentation on more than one line in the nearby area.
In the following examples:  Sample one is preferred over sample two. 

Sample One:  
//This program will prompt the user to enter the user's name.
//It then print out the greeting message.

#include 
using namespace std;

int main() {

    //declare a variable user_name
    string user_name;

    //print out a greeting message
    cout << "Welcome to the world of C++" << endl;
    //ask for user name
    cout << "What is your name? ";
    //enter user name
    cin >> user_name;
    cout << endl;
    //print out the greeting message
    cout << "Hi " + user_name + "! Welcome to CS110 class." << endl;
    return 0;
} // end main


Sample Two:  
//This program will prompt the user to enter the user's name.
//It then print out the greeting message.

#include 
using namespace std;

int main() {

    string user_name;   //declare a variable user_name

    cout << "Welcome to the world of C++" << endl; //print out a greeting message
    cout << "What is your name? "; //ask for user name
    cin >> user_name; //enter user name
    cout << endl;
    cout << "Hi " + user_name + "! Welcome to CS110 class." << endl; //print out the greeting message
    return 0;
} // end main

4. Using script command in hercules

The Unix command script is very useful and important in preparing your class assignments to hand-in.
Here are the instructions, procedures, and examples for your reference:

Capture program output on hercules using script.

5. Transfering files between hercules and Windows environment

You may want to transfer files from hercules to windows for printing purposes,
or transfer files from windows to hercules for scripting purposes.
Here is a link/program for you to do the file transfer between hercules and Windows PC:

Transfer files between Hercules and Windows PC environment

6. Printing from Windows

In the Windows environment, a text file can be printed by using Note Pad.
For example, a .cpp file or a .log file can be printed in Windows PC by using Note Pad.
Please note:
when you use WinSCP program to transfer a .log file to the local PC, select F5 Copy and choose Text as the transfer mode.

7. Making a ScreenShot

In CL135.4, you are using a Windows PC. To make a screenshot, you can follow the following procedures:
1).  Select the window that you want to do screenshot by click on that window;
2).  Press the key PrintScreen which is at the top row of the keyboard on the right.
3).  Open the Paint program, and select paste.
4).  Save the picture/image/screenshot as a gif or jpeg file.


Here is a link for your reference:

Making a Screenshot