在C++里,怎样才能编辑可以在键盘输入多个字符串数组的编程?

如题所述

#include<iostream>
#include<string>
using namespace std;
void main()
{
int n;
cout<<"输入要输入字符串数组的数目:";cin>>n;
string a[100];
int i;
for(i=0;i<n;i++)
{
cin>>a[i];
}
}
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答