【发布时间】:2016-04-19 16:49:17
【问题描述】:
如果我有一个向量并像这样初始化它。如何分别访问点的第一部分和第二部分。
vector<Point2i> cent_i(1); // how do i initialize with a point like (1,2 )
cent_i[0][0] = (floor( s.width/2)); //TRYING TO change the points
cent_i[0][1] = (floor( s.height/2));
我不知道我这样做是否正确
【问题讨论】: