Difference between revisions of "User:Andrew Daniele"

From CDOT Wiki
Jump to: navigation, search
(User: Andrew Daniele)
Line 6: Line 6:
 
| IRC || adaniele87
 
| IRC || adaniele87
 
|-
 
|-
| GitHub || [http://github/adaniele87 adaniele87]
+
| GitHub || [http://github.com/adaniele87 adaniele87]
 
|-
 
|-
 
| Blog || [http://adaniele87.tumblr.com adaniele87]
 
| Blog || [http://adaniele87.tumblr.com adaniele87]

Revision as of 13:36, 14 September 2013

Contact Info
Name Andrew Daniele
IRC adaniele87
GitHub adaniele87
Blog adaniele87
E-Mail adaniele1

Programming Code of the update:


/*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;
      }
    }
  }
}