CPlusPlusThings/practical_exercises/10_day_practice/day10/文件例题/12-2应用.cpp
Light-City a4d828bb4c update
2020-04-06 00:57:02 +08:00

14 lines
256 B
C++

#include<iostream>
using namespace std;
int main(int argc, char const *argv[])
{
char stu[5][10];
int i;
for(i=0;i<5;i++)
cin.getline(stu[i],10,',');
for(i=0;i<5;i++)
cout<<stu[i]<<endl;
system("pause");
return 0;
}