I have some problem with putting object in vector
her's the code
#include <iostream>
#include <vector>
using namespace std;
class Pair {
public:
Pair(int a, int b)
{x=a; y=b;};
int get_x()
{return x;};
int get_y()
{return y;};
private:
int x;
int y;};
int main()
{vector<Pair> set();
Pair* a1 = new Pair(70, 64);
set.push_back(a1);
system("PAUSE");
return 0;
}
and I get error message :S