CPlusPlusThings/practical_exercises/10_day_practice/day10/file/12-2.cpp

13 lines
241 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;
return 0;
}