Final version

This commit is contained in:
tienthieusac committed 2018-06-15 09:06:36 +07:00
1 parent 7a411ee67e
commit 55798289ef
3 files changed
+28 -27

No files matched your search

+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;
}
}