create a vector

Mar 23, 2013 at 11:48pm
I don't even know how to get started. Please help!!!
Last edited on Mar 31, 2013 at 1:12am
Mar 24, 2013 at 6:24am
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);
}
//... 
Mar 24, 2013 at 7:06am
@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.