Open main menu

CDOT Wiki β

Changes

Assignment 1: Q & A

455 bytes added, 18:14, 17 September 2012
String scrolling within field
== Q & A ==
 
'''Q:''' How do I scroll through strings within a field?<br>
'''A:''' To scroll through the string use pointer math. Use a pointer to point to where you want to start printing your string. Then use display to re-print your string using the new pointer instead of str. <br>
'''Ex:''' <br>
char* strStart;<br>
strStart = str + yourOffsetHere;<br>
display (strStart, row, col, fieldLength);
<br>
'''Submitted by:''' Jordan Theriault & Julian Burton<br><br>
'''Q:''' What is the difference between terminating and aborting editing?<br>