// testAssign.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <vector>
using namespace std;
int main(int argc, char* argv[])
{
vector<int> vec_int;
char buf[128] = {0};
vec_int.assign(buf, buf + sizeof(buf));
printf("size:%d\n", vec_int.size()); //---- 128
vec_int.assign((int*)buf, (int*)(buf + sizeof(buf)));
printf("size:%d\n", vec_int.size()); //---- 32
return 0;
}