Open main menu

CDOT Wiki β

Changes

Team 6 Bugs Report

1,658 bytes added, 22:37, 30 September 2013
no edit summary
------------------------------------
<u>String Edit Function (28/SPESEP/2013) -9.10pm</u>
*AbcdefghiJKLmnopqrstuvwxyZ....'''WORKS'''
*AbCdefghiJKLmnopqrstuv12......'''WORKS'''(fault of error was the user not entering C. Code was fine)
*AbCdef7892JKLmnopqrstuv12 ....'''ERROR'''
 
-------------------------------------
 
<u>Totoal Reprogramm of Edit Function. (30/SEP/2013) -2.20am</u>
 
*Old code used the console buffer as a means of storing the characters to be stored into the string which was applied to the string only when ENTER was pressed. This method worked but on the last string proved to be too difficult to solve thus a full reprogram of the function to directly affect the str pointer was needed.(Thanks to Kabeer for the explanation)
** else{//saves changes to the str* directly from console
console.setPosition(row, col);
console.getPosition(editrow,editcol);
int i=0;
do{
console.setPosition(editrow, editcol+i);
str[i+*strOffset]=console.getCharacter();
i++;
}while(i<= fieldLength && (console.getCharacter())!=' ');
if((console.getCols() - col) > fieldLength && !changed)
str[i-1]='\0';
}
 
-------------------------------------------------------------
 
<u>Finally Understood how the INSERT TOGGLE works. (30/SEP/2013) -10.34am </u>
* Because the a1test.cpp program sent the value '''false''' to the edit function false was used as the default "Overwrite" mode.
 
 
------------------------------------------------------------------
 
<u>A1 TEST RESULTS. 30/SEP/2013) -9.20pm
*AbcdefghiJKLmnopqrstuvwxyZ....'''WORKS'''(No Problems)
*abcdefghiJKLmnopqrstuvwxyZ....'''WORKS'''(No Problems)
*AbCdefghiJKLmnopqrstuv12......'''WORKS'''(Had to make changes to if(key == BACKSPACE) because it would not delete characters when the cursor started from the END of the string)
*AbCdef7892JKLmnopqrstuv12 ....'''ERROR'''(No Problems)
1
edit