Changes

Jump to: navigation, search

Team 5 Bugs Report

270 bytes added, 17:54, 6 November 2013
no edit summary
strncpy(strOut, str, fieldLen);
strOut[fieldLen]='\0';
// ...
//delete [] strOut;
}
( Commented being the fix)
 * == Week 4-5 Log Bug Report (Sept. Tai Nguyen/25/1309/2013): ==
- display function completed, no bugs found
- edit function problem
Bug 1.0 for edit function - objective'''Objective: move cursor left and right with arrow keys (LEFT, RIGHT)''' '''Issue: when typing, cannot insert correct values and cannot use left and right keys''''''Solution: Using arrays to store the current positions causes issues with the console input.. not sure why.. but when removed array - currPos and used normal variable int to store the row and column current position it worked...'''
code attempt:
 
do{
 
console.getPosition(currPos[0], currPos[1]); //currPos[0] - rows
 
console >> key;
 
do{
console.getPosition(currPos[0], currPos[1]);
console >> key;
 
if(key >= ' ' && key <= '~'){
console << key;
}
}while(key != ESCAPE);
issue: when typing, cannot insert correct values and cannot use left and right keys
 
However if re-written as, it performs as desired:
do{
}
}while(key != ESCAPE);
 
Bug Report (Tai Nguyen/Yiqi 28/09/2013)
- We noticed a problem on putty/ssh that the home button key does not register in the a1test.cpp compile run
1
edit

Navigation menu