Advertisement
This is comment for paste
02. Remove Negatives and Reverse
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (ss >> number) { numbers[counter++] = number; } needs to limit the writes to numbers to prevent another oob access, for example using for (counter = 0; counter < 1000 && ss >> number; ++counter) numbers[counter] = number;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement