c++中string a[10]是什么意思

c++中string a[10]是什么意思

慕桂英3389331
浏览 1468回答 2
2回答

DIEA

长度为10的字符串对象数组。可以这样用:a[0] = "this is the first string in array.";a[1] = "this is the second string in array.";cout << a[0] << endl << a[1] << endl;

红颜莎娜

定义了一个具有10个元素的数组,数组中的每个元素都是string类型的。
打开App,查看更多内容
随时随地看视频慕课网APP