Open main menu

CDOT Wiki β

Changes

Assignment 1 (Fall 2013) Q & A

542 bytes added, 21:16, 25 September 2013
no edit summary
Q8: What is the purpose and functionality of the "strOffset" parameter? This explanation is confusing: "strOffset points to an int variable that holds the initial offset of the string within the field; that is, the index of the character in the string that initially occupies the first character position in the field." Please answer it in simpler terms, maybe with an example as well. -- Fries'n'burg
* The 'strOffset' allows the string to be moved if the fieldlength is shorter than a string itself and the cursor is beyond the string. To do that it points to a int value which is the index of the string. i.e if the string is "abcdefghi" and the field length is 5, the string will be shown as "abcde"; when you move the cursor beyond 'e' it should display "bcdef" and so on. Hopefully this helps. -(Team 2)
'''Q:''' What is the difference betweem '''consolelineedit.h''' and '''consoleplus.h''' ? <br>'''Submitted by:''' Rafid Daoud and Arnold Goncharenko, Team 8 <br><br>* There is no file named consolelineedit.h. There is only consoleplus.h in which all your prototype functions are declared.(Team 2) 
'''Submitted by:''' Rafid Daoud and Arnold Goncharenko, Team 8 <br><br>
== Features/Assignment Information ==