Final version

This commit is contained in:
tienthieusac
2018-06-15 09:06:36 +07:00
parent 96bc3cf0e3
commit e3edeb4efa
3 changed files with 28 additions and 27 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ inline bool input_name(string &name) {
}
to_upper(s);
for (unsigned int i = 0; i < s.length(); i++) {
if (isalpha(s[i]) == 0) {
if (isalpha(s[i]) == 0 && s[i] != ' ') {
return 0;
}
}