Open main menu

CDOT Wiki β

Changes

BTP300 Student Resources

195 bytes added, 10:03, 1 November 2011
Useful code snippets
{{BTP300 Index | 20113}}
=Student Resources=
The purpose of this page is to share useful information that can help all groups with their projects.==Pseudo CodeUseful pseudo code==This should help you with your designs of is one way to design some of the your classes. Other ways are also possible. The instance variable and pointer names are left to your discretion. Not all methods and functions are included. The simpler ones are omitted.
===CFrame===
* CFrame::Constructor
** initialize instance variables
** determine if full screen
*** if full screen set width and height to console width and height
** initialize covered area to nothing
* CFrame::Destructor
** release the covered area
* CFrame::setLine
** release the dynamic memory used to store the hidden characters
* move
** create pointer to meesage message for moving
** capture the characters hidden by the message
** for each move request
*** may need to draw the frame after removing the message
===CField===
* CField::Constructor
** pass parameter data to CFrame
** store the address of the field data in the instance pointer
* CField::Destructor** does nothing
* CField::display
** call CFrame::display with the offest offset received
* CField::edit
** call CFrame::edit with the address of the data belonging to the field
==Useful code snippets==
*[http://zenit.senecac.on.ca/wiki/index.php?title=BTP300_Team_NVG#Useful_Code_Snippets Team NVG's Code Snippets]
1
edit