|
|
int* myArray = new int[num];
|
|
|
|
for (index=0;index<num-1;index++)
vector theVector(num); // create vector of size num
needed to be bigger by 1 due to the swap holder. |
|
|
Please type in how many numbers you want to sort 8 Please type the numbers you want to sort 1) 43 2) 869589 3) -37 4) 2 5) 0 6) -43 7) 1253 8) -9 43, 869589, -37, 2, 0, -43, 1253, -9, 43, -37, 2, 0, -43, 1253, -9, 869589, -37, 2, 0, -43, 43, -9, 1253, 869589, -37, 0, -43, 2, -9, 43, 1253, 869589, -37, -43, 0, -9, 2, 43, 1253, 869589, -43, -37, -9, 0, 2, 43, 1253, 869589, -43, -37, -9, 0, 2, 43, 1253, 869589, -43, -37, -9, 0, 2, 43, 1253, 869589, -43, -37, -9, 0, 2, 43, 1253, 869589, |