create a vector

I don't even know how to get started. Please help!!!
Last edited on
1
2
3
4
5
6
7
8
9
10
11
12
#include <vector>

//...
std::vector<int> primes;
//...

//...
else { 
    cout << number << " is prime";
    primes.push_back(number);
}
//... 
@Bubbly Pink - you should always keep code inside code tags if you want more responses. people generally skip questions where the code is not inside code tags because it looks like a mess.
Topic archived. No new replies allowed.