您的位置:首页 > 其它

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

2016-03-13 13:24 330 查看
#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];

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: