13 lines
241 B
C++
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;
|
|
}
|