for Visual C++ .NET
Before you can do graphics, you need to do some code library installation.
Download the following zip file:
.
(NOTE: This is a local copy; the original can be found at http://www.horstmann.com/ccc/ccc3e.zip)
Unzip these files in a reasonable spot on your hard drive.
Create a new project. Under "Application Settings", select Windows application, Empty project. DO NOT CREATE A "CONSOLE" APPLICATION.
Add the cccfiles directory to the include path. To do this, perform the following steps:
![]() |
![]() |
| BEFORE | AFTER |
Your aerobic activities should have you near a "jogger's high" by now. Think you're done? Don't you wish! Add ccc_win.h, ccc_msw.cpp and ccc_shap.cpp to the project (also ccc_msw.h and ccc_shap.h), by clicking on Project -> Add Existing Item..., and selecting these files.

Now, create a new source file and add it to the project.
#include "ccc_win.h"
int ccc_win_main()
{
Point p(1, 3);
cwin << p << Circle(p, 2.5);return 0;
}
Compile and run your program. If you're lucky, all goes well, you should
produce a graphics window with the following output:
