Like this? I've never used vectors before, but I did a little snooping on the web.
It compiles, but I'm not sure if it's doing what I want (when I run it gives me the "Press any key...")...?
Code:
#include <iostream>
#include <algorithm>
#include <cassert>
#include <functional>
#include <vector>
using namespace std;
int main()
{
int a[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; //put the data to be shuffled in here
int i,t;
vector<int> wholerun;
int whole;
for(t = 1; t <= 10; t++) //put the number of times to be shuffled here
{
random_shuffle(&a[0], &a[5]);
for(i = 0; i < 10; i++) //put the number of data elements, from zero to whatever, in here.
{
//cout << a[i] << " ";
wholerun.push_back(whole);
}
}
cout << " " << endl;
system("pause");
return 0;
}