Advertisement
juanjo12x

Quicksort_Index

Sep 29th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <cstdio>
  2. #include <cstdlib>
  3. #include "numGBases.h"
  4.  
  5.  
  6. using namespace std;
  7.  
  8. /*
  9.  *
  10.  */
  11. int main(int argc, char** argv) {
  12.     int* arreglo;
  13.     int n;    
  14.     scanf("%d",&n);
  15.     arreglo=new int[100];
  16.     for(int i=0;i<n;i++){
  17.         scanf("%d",&arreglo[i]);
  18.     }
  19.     int *index=tablaI(arreglo,n-1,'A');
  20.     for(int i=0;i<n;i++){
  21.         printf("%d ",index[i]);
  22.     }
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement