11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 22: Factoring Classes 299Figure 22-6:The NewProjectwindowallows theuser toenter thename andtype ofproject.2. Click OK.Dev-C++ opens a file window.3. Select the directory into which to store the project.I selected \CPP_Programs\Chap22. Dev-C++ creates a project with adefault initial module main.cpp.4. Remove main.cpp from the project because you already have amain() module.5. Choose Project➪Remove From Project.6. Select main.cpp and click OK.7. Copy the files main.cpp, Student.cpp, GraduateStudent.cpp, student.h, and graduateStudent.h to the Chap22 folder if theyaren’t there already.8. Choose Project➪Add to Project.9. Select the entire list of source modules and click OK.10. Choose Execute➪Rebuild All to compile the modules in the projectand create an executable program.11. Click the Classes tab in the left window to see a detailed descriptionof each class in the program, as shown in Figure 22-7.Make sure that the class browser is enabled and configured properly.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!