uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

main.c (283B)


      1 #include "combinations.h"
      2 
      3 int main(int argc, char **argv)
      4 {
      5     int *arr, N, x1, x2, y1, y2;
      6 
      7     N = get_n();
      8 
      9     arr = fill_array(N);
     10     quicksort(arr, 0, N-1);
     11     x_pair(&x1, &x2);
     12     y_pair(&y1, &y2);
     13     print_combs(arr, N, x1, x2, y1, y2);
     14 
     15     free(arr);
     16 
     17     return 0;
     18 }