Object Oriented Programming Using c++[0893-0893]
Object Oriented Programming Using c++[0893-0893]
866
If you leave this out, the compiler will complain that it doesn’t recognize cout, <<, endl, and
so on.
Before starting work on a new program, don’t forget to select Close Workspace from the File
menu. This ensures that you begin with a clean workspace. To open a program you’ve already
built, select Open Workspace from the File menu, navigate to its directory, and double-click the
file with the appropriate name and the .DSW extension.
Multifile Programs
We’ve shown the quick and dirty approach to building programs. This approach works with
one-file programs. When projects have more than one file, things become slightly more com-
plicated. We’ll start by reviewing what’s meant by the terms workspace and project.