Open main menu

CDOT Wiki β

Changes

Assignment 1 (Fall 2013) Q & A

14 bytes added, 12:02, 22 September 2013
no edit summary
Q4: To get the offset of the string when moving right or left would we have to allocate memory since we are unable to return the offset to the display function? -- Kabeer
*Answer: During LEFT or RIGHT we do not need to allocate memory, we just do subtract (-- ) for LEFT or add (++ ) for RIGHT to change the offset. And we don't need to call the display function during RIGHT/LEFT keys since you just need to set the cursor position at that point. -- Huda (Team 1)
Q5: The curPosition parameter points to the "index of the character in the field at which the cursor is initially placed". Is this where the cursor position is placed before displaying the string or after? And if it is for before the string is displayed: is there a standard location the cursor should be sent after displaying the string? -- Justin
1
edit