|
|
@ -39,11 +39,13 @@ input_data() {
|
|
|
|
for (i = 0; i < in.stroke.length(); i++) {
|
|
|
|
for (i = 0; i < in.stroke.length(); i++) {
|
|
|
|
if (isspace(in.stroke[i])) {
|
|
|
|
if (isspace(in.stroke[i])) {
|
|
|
|
cerr << "invalid input";
|
|
|
|
cerr << "invalid input";
|
|
|
|
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (in.stroke[0] == check2[0]) {
|
|
|
|
if (in.stroke[0] == check2[0]) {
|
|
|
|
if (in.stroke.length() != 7) {
|
|
|
|
if (in.stroke.length() != 7) {
|
|
|
|
cerr << "invalid input";
|
|
|
|
cerr << "invalid input";
|
|
|
|
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return in;
|
|
|
|
return in;
|
|
|
|