Open main menu

CDOT Wiki β

Changes

User:Andrew Daniele

679 bytes added, 13:29, 14 September 2013
Created page with '== User: Andrew Daniele == {| class="wikitable" border="1" |+ Contact Info |- | Name || Andrew Daniele |- | IRC || adaniele87 |- | GitHub || [http://github/adaniele87 adaniele87…'
== User: Andrew Daniele ==

{| class="wikitable" border="1"
|+ Contact Info
|-
| Name || Andrew Daniele
|-
| IRC || adaniele87
|-
| GitHub || [http://github/adaniele87 adaniele87]
|-
| Blog || [http://adaniele87.tumblr.com adaniele87]
|-
| E-Mail || [mailto:adaniele1@myseneca.ca adaniele1]
|}

Programming Code of the update:<br />
----
<syntaxhighlight lang="cpp">
/*sorting an array of ints*/
void ascending(int* arr, int size)
{
int i;
int j;
int temp;

for (i = 0; i < size; i++)
{
for(j = i+1; j < size; j++)
{
if (arr[i] > arr[j])
{
temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
}
}
}
</syntaxhighlight>