看一下STL vector 向量容器的基本使用;CFree 5.0,Win7;
创建工程时选择C++语言;STL是C++的;如果是写纯API程序也可以选择C语言;
看一下CFree的包含文件;包含对STL的支持;
#include <windows.h>
#include "resource.h"
#include <vector>
#include <algorithm>
using namespace std;
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
HINSTANCE hInst;
TCHAR szClassName[] = TEXT("vecDemo");
vector<int> vec1;
vector<int>::iterator itr1;
vector<int>::iterator itr2;
int WINAPI
WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nFunsterStil)
{
HWND hwnd;
MSG messages;
WNDCLASSEX wincl;
hIn