
#include <vector>
using namespace std
class MPoint
{
public:
int y
int x
vector<double> a
public:
MPoint(int, int)
virtual ~MPoint()
}
void main()
{
return
}
头文件前面添加#include <vector>
using namespace std
之后就可以正常使用vector了
如
vector<int>m_vecInts
vector<int>m_vecInts2
m_vecInts.swap(m_vecInts2)
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)