1
| | #include <iostream>
#include <vector>
#include <ctime>
using::std::vector;
using::std::cout;
using::std::endl;
int main(int argc, char **argv)
{
const unsigned int ARRAY_SIZE = 10000000;
unsigned int c_array[ARRAY_SIZE];
vector<unsigned int> v_array;
v_array.resize(ARRAY_SIZE);
unsigned int c_start,
c_end,
v_start,
v_end;
unsigned int temp = 0;
c_start = clock();
for(int x = 0; x < ARRAY_SIZE; ++x)
{
temp += c_array[x]; |