Open main menu

CDOT Wiki β

Changes

Hints for OOP344 Assignment 1

788 bytes added, 16:02, 29 September 2011
Borland compiler problem
#-<span style="color:#FF0000"><b> Make sure before the function ends, deallocates the allocated memory.</b></span>
OTHER EXIT KEYS:
* You don't have to individually code every key that exits the editor; all of them apart from ESCAPE use the same code, so just let the cases "drop through" each other.
INSERT KEY:
Printable KEY:
 
// if( key is withing printable character's code){
// if (*instermode){
// }
//}
* For INSERT mode, you'll need to increase the length of the string before you push the characters.
 
Diagram
*Max str length is used when FieldLength is 0. It decide the length of your str so that it will fit on the screen(with no wrap).
 
=Matrix compiler problem=
http://ryandang-cpa.blogspot.com/2011/09/issue-with-matrix-compiler.html
 
Make sure to #include string.h instead of string or you will have many errors if you have used strlen strcpy etc.
 
=Borland compiler problem=
#make sure you follow these instruction to install Borland properly.
#make sure you use the console.cpp,key.h,console.h from /trunk/Console folder.
#In order to compile under borland compiler you need to use the last release 1.3 of the console.
=Contributor=
Qtdang1
 
Lpasquale1
1
edit