如何创建指定大小的数组/字符串

#include <iostream>
#include <vector>
#include <string>



using namespace std;


int main()
{
	vector<int> a(10);
	int b[10];
	int *c = new int[10];

	
	char str2[10];
	char *str3 = new char[10];


	
}

posted @ 2016-03-13 13:24  牧羊少年10号  阅读(539)  评论(0编辑  收藏  举报