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

#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];


	
}

原文地址:https://www.cnblogs.com/muyangshaonian/p/9650547.html