请帮小弟我看看下面这个有关问题,是语法有关问题,多谢
求助:请各位大哥帮我看看下面这个问题,是语法问题,谢谢!
#include "stdafx.h "
#include <windows.h>
#include "stdio.h "
#include <vector>
using namespace std;
vector <POINT> ptPath; //这里不知道是什么意思
POINT ptWH[4] =
{
{ 66, 94 },
{ 68, 82 },
{ 95, 99 },
{ 95, 99 },
};
vector <POINT> pts[2];
ptPath.clear();
请教:
#include <vector>
vector <POINT> ptPath;
有这样的写法吗?
#include <vector>
表示的是什么意思?
vector <POINT> ptPath;
表示的是什么意思?
谢谢!
------解决方案--------------------
有,看STL吧
------解决方案--------------------
vector 向量
有点向数组,但是长度可以扩展.
vector <POINT> ptPath;
创建一个POINT为元素的vector
具体看STL资料
------解决方案--------------------
多看的书
#include "stdafx.h "
#include <windows.h>
#include "stdio.h "
#include <vector>
using namespace std;
vector <POINT> ptPath; //这里不知道是什么意思
POINT ptWH[4] =
{
{ 66, 94 },
{ 68, 82 },
{ 95, 99 },
{ 95, 99 },
};
vector <POINT> pts[2];
ptPath.clear();
请教:
#include <vector>
vector <POINT> ptPath;
有这样的写法吗?
#include <vector>
表示的是什么意思?
vector <POINT> ptPath;
表示的是什么意思?
谢谢!
------解决方案--------------------
有,看STL吧
------解决方案--------------------
vector 向量
有点向数组,但是长度可以扩展.
vector <POINT> ptPath;
创建一个POINT为元素的vector
具体看STL资料
------解决方案--------------------
多看的书