DEVELOPING PROGRAMS IN MICROSOFT VISUAL C++ LAST SEMESTER: Programs consisted of a single file, xxx.cpp. Created by: File/New/Files/C++ Source File. Enter xxx in the window. Complied by Build/xxx.exe or Execute/xxx.exe to run. THIS SEMESTER: Programs may consist of more than one file. We will need to combine one or more files into a project. Creating a project: Edit and compile your driver as normal. The compiler will create a project and "bring in" included .h files Adding .cpp files to the project: select Project/Add to Project/Files Execution: same as last semester. Note the left frame has two view tabs: ClassView and FileView. All files we create are visible under FileView. Classs attributes and methods are visible under ClassView. REUSING FILES IN MORE THAN ONE PROJECT: You may have files, e.g. personType.h and personType.cpp, that you want to use in more than one project (with a different driver). This is fine but you need to start by creating a project with the new driver and then adding files to it. Editing the reused files will impact the other places in which they are used. OTHER HINTS: EMPTY PARENTHESES IN FUNCTIONS When you define a member function with no parameters, you need empty parentheses. E.g. int getHour(); //return the hour When you call it, if you leave off the parentheses, e.g. clockType clock; ... cout << clock.getHour; it "runs" but does not give the correct answer.