Changes

Jump to: navigation, search

Assignment 1 (Fall 2013) Q & A

6 bytes removed, 20:59, 26 September 2013
no edit summary
Q7: Can we use memmove() function to insert a character to the string?(team 3)
*Answer: yes you can use it.
 
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)
* Take a look at the diagram that we posted below - it helped us understand how this works (Team 4)
 
'''Q:''' What is the difference between '''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)
 
 
== Features/Assignment Information ==
- On the Session press the 'load' button and connect to matrix.
This will allow the buttons such as 'Home','END', etc to work properly when testing/compiling.
 
 
USEFUL DIAGRAM - we found this posted from a previous class... we found it helpful to help understand the curPosition and the strOffset (Team 4)
[[Image:A1_Diagram.png|thumb|1000px| ]]
1
edit

Navigation menu