CIS 1.5
Introduction to Programming Using C++
Capturing Output

The Issue

Your cout output is sent to a Command Prompt window, which disappears after your program terminates. However, I need to be able to see the output of your program.

The Solution

We will eventually solve this problem, but until then, this page will show you how you can manually capture and submit your output to me (the process of grabbing the output for subsequent viewing/use is known as capturing -- you may have heard of the term screen capture where a snapshot of your computer or video screen is taken; or video capture where video camera output is captured to a computer).

I am assuming you are running Code::Blocks; but the approach is similar for Dev/C++ as well.