Team 6 Bugs Report

From CDOT Wiki
Revision as of 21:37, 30 September 2013 by Rlanderson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

display()..WORKS - 16/SEP/2013


String Edit Function (28/SEP/2013) -9.10pm

  • AbcdefghiJKLmnopqrstuvwxyZ....WORKS
  • abcdefghiJKLmnopqrstuvwxyZ....WORKS
  • AbCdefghiJKLmnopqrstuv12......WORKS(fault of error was the user not entering C. Code was fine)
  • AbCdef7892JKLmnopqrstuv12 ....ERROR

Totoal Reprogramm of Edit Function. (30/SEP/2013) -2.20am

  • 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';
   }

Finally Understood how the INSERT TOGGLE works. (30/SEP/2013) -10.34am

  • Because the a1test.cpp program sent the value false to the edit function false was used as the default "Overwrite" mode.



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)