for (x = 0; x < arraysize; x++) {
ptrHeltal[x] = (rand() % high + low);
ptrHeltal[x] = ptrHeltal[i]; // that's why you keep getting the same value
std::cout << "\n" << ptrHeltal[x];
}
...
Type: Posts; User: zw_hat
for (x = 0; x < arraysize; x++) {
ptrHeltal[x] = (rand() % high + low);
ptrHeltal[x] = ptrHeltal[i]; // that's why you keep getting the same value
std::cout << "\n" << ptrHeltal[x];
}
...