Changes

Jump to: navigation, search

User:Andrew Daniele

1,231 bytes added, 22:51, 4 October 2013
Other
== About Me ==
{| class="wikitable" border="1"
|+ Contact Info
|}
Programming Code of the updateif you need to contact me here is my schedule:<br />----(I check my emails during studying and catchup time)
<syntaxhighlight lang="cpp">
/*sorting an array of ints*/Human senecaStudent;void ascendingsenecaStudent = new Human(int* arr"1987-12-18", int size"Daniele", "Andrew"); while (senecaStudent.inSemester())
{
int isenecaStudent.wakeUp(); int jsenecaStudent.eatBreakfast(); int tempsenecaStudent.setAlertStatus("on");
for switch(i = 0; i < size; i++day)
{
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>

Navigation menu