Ok i only just saw the last two replies I did this today its a bit off but i tried.
Ok this is what ive done so far..
Code:
#include <iostream>
 using namespace::std;
 
 
 int bubblesort( int arrayf[], int size);
 
  int bubblesort( int arrayf[], int size)
  {
  int temp;
  int i=0;
  
  arrayf[size];
  
  bool swapped = false;
  
   if (arrayf[i]>arrayf[i+1])
   {
                             
    swapped = true;
    
   temp = arrayf[i];
   arrayf[i] = arrayf[i+1];
   arrayf[i+1] = temp;
   bubblesort(arrayf,0);
   cout<<arrayf[i];
   }
   else {
        if (arrayf[i]>arrayf[size-1])
        {
         bubblesort(arrayf, size--);
        }
        }
   
}   
int main()
{
    int j = 15; 
    int arr[j];
     bubblesort(arr, j);
     
     getchar();
     return 0;
     
     }