Difference between revisions of "OOP344 Assignment Two"
Line 4: | Line 4: | ||
As the first part of your project this semester, you are to create few classes to encapsulate [[Console Input Output Library|OOP344 Assignment One]] | As the first part of your project this semester, you are to create few classes to encapsulate [[Console Input Output Library|OOP344 Assignment One]] | ||
− | + | ==File Names== | |
− | |||
− | |||
Save your work in separate files for each class. Name the files to the same name as the classes. Each class should have a header file and a code file. | Save your work in separate files for each class. Name the files to the same name as the classes. Each class should have a header file and a code file. | ||
Line 14: | Line 12: | ||
Create a Make file to build your project with respect to dependencies of classes. | Create a Make file to build your project with respect to dependencies of classes. | ||
− | + | ==How to reuse your C code in C++ programs== | |
Include your already existing C code into your C++ in code as follows: | Include your already existing C code into your C++ in code as follows: | ||
Line 23: | Line 21: | ||
This tells to C++ compiler, the included header file contains C functions and should be complied and called as such. Remember, you do not need and should not rename your ciol.c to ciol.cpp, since the compiler is already aware of the C functions in ciol.c. | This tells to C++ compiler, the included header file contains C functions and should be complied and called as such. Remember, you do not need and should not rename your ciol.c to ciol.cpp, since the compiler is already aware of the C functions in ciol.c. | ||
− | + | ==Team Project Wiki Pages== | |
Add a link to your Team project Wiki pages here: | Add a link to your Team project Wiki pages here: | ||
− | + | ==Mandatory Classes== | |
− | + | ===IO_Field=== | |
− | + | ===IO_Form=== | |
− | + | ===IO_Label=== | |
− | + | ===IO_Edit=== | |
− | + | ===IO_CheckList=== | |
− | + | ===IO_Radio=== | |
− | + | ===IO_Menu=== | |
− | + | ===IO_MenuBar=== |
Revision as of 13:10, 12 October 2009
OOP344 - OOP344 Student List - OOP344 Teams - OOP344 Assignment One - OOP344 Assignment Two
Under construction...
As the first part of your project this semester, you are to create few classes to encapsulate OOP344 Assignment One
Contents
File Names
Save your work in separate files for each class. Name the files to the same name as the classes. Each class should have a header file and a code file.
For example for the class IOField, create iofield.h and iofield.cpp. The header file should hold the class declaration and any other possible declaration related to the class. the "cpp" file should hold the definition (implementation) of the class and its methods and possible functions.
Create a Make file to build your project with respect to dependencies of classes.
How to reuse your C code in C++ programs
Include your already existing C code into your C++ in code as follows:
extern "C"{ #include "cio.h" };
This tells to C++ compiler, the included header file contains C functions and should be complied and called as such. Remember, you do not need and should not rename your ciol.c to ciol.cpp, since the compiler is already aware of the C functions in ciol.c.
Team Project Wiki Pages
Add a link to your Team project Wiki pages here: