学号 成绩
students[1][1]=001 students[1][2]=80
students[2][1]=002 students[2][2]=99
如果帮到你麻烦采纳哈,如果跟你的问题不符合,可以追加提问
输出:
#include <iostream>
#include <string>
using namespace std;
int main() {
string str[2][2] = { "001","80" ,"002","99"};
cout << str[0][0]<<"\t"<<str[0][1] << endl;
cout << str[1][0]<<"\t"<<str[1][1] << endl;
system("pause");
return 0;
}