1
edit
Changes
→Other
== User: Andrew Daniele About Me ==
{| class="wikitable" border="1"
|+ Contact Info
| IRC || adaniele87
|-
| GitHub || [http://github.com/adaniele87 adaniele87]
|-
| Blog || [http://adaniele87.tumblr.com adaniele87]
|}
<syntaxhighlight lang="cpp">
{
{
case 1: case 2: case 3: case 4: case 5: forsenecaStudent.takeBus(j = i+1"school", "home"); j < size senecaStudent.takeBus("home", "school"); j++ senecaStudent.doHomework(); {senecaStudent.eatDinner(); if senecaStudent.playWith(arr[i] > arr[j]"whiteboard"); { senecaStudent.study(); temp = arr[i] break; arr[i] = arr[j] case 6: senecaStudent.catchUp("school", 40);// in percent arr[j] = temp senecaStudent.eatDinner(); senecaStudent.catchUp("school", 30); } break; case 7: }senecaStudent.work(); senecaStudent.eatDinner(); senecaStudent.catchUp("school", 30); senecaStudent.playWith("whiteboard"); break;
}
senecaStudent.setAlertStatus("off");
senecaStudent.sleep();
}
</syntaxhighlight>
== Other ==
Programming Code of the update:<br />
----
unfortunately I wasn't able to utilize this in the assignment, but I thought I'd share. It's simple, it's elegant, it's efficient. If the user were to go past strLen+1, this would patch up NULL bytes with blanks between the string and the character inserted. This could then be displayed by the display method as it printed everything up to the first NULL byte.
<syntaxhighlight lang="cpp">
while(!editStr[--i]) // patches NULL bytes to join string
{
editStr[i] = ' ';
}
</syntaxhighlight>