Changes

Jump to: navigation, search

OOP344 Assignment One

61 bytes added, 12:04, 24 September 2009
Line Editor: int io_edit(........)
'''IsTextEditor:'''
If IsTextEditor is true, then it means that the function is being used to edit a text by editing one line of the text at a time. Doing soIn this case, since shifting a line to the left or right should not only cause the editing line to be shifted, but also the rest of the lines in the text. To do this , io_edit should let the calling function take care of shifting instead of doing it, by itself. Since shifting essentially means modifying “*offset”, if when “IsTextEditor” is true, then at anytime and that there are times when you find that “*offset” needs to be modified, you should terminate the function instead and . With termination, the function should return the terminating key.
''Also when IsTextEditor is true, When Escape is hit do not abort the editing but simply terminate the function returning the Escape key.''
If memory allocation for aborting the edit (ESCAPE KEY) fails, quit the function returning -1.
 
===Selection Editor===
1
edit

Navigation menu