11智能在线
新记
在C++里,怎样才能编辑可以在键盘输入多个字符串数组的编程?
如题所述
举报该文章
相关建议 2014-11-08
#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];
}
}
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/f4q8fm22vvssqf2f47q.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
怎样实现C++字符串数组输入
c++中如何处理我输入多段字符串但是不确定自己要输入多少个字...
c++,定义数组,并通过键盘输入数组的值,怎么做??
C++如何键盘输入字符串 到动态字符串数组中?
如何键盘输入的多个字符赋值给char数组
c++键盘输入字符串
c++怎么从键盘输入一个字符串存入字符串数组,并且以 x 结...
C++如何用二维数组存储多个由键盘输入的字符串?急需程序代码