uz by to mohlo fungovat stale bez osetrenia vstupu
This commit is contained in:
parent
93a7c34130
commit
98c2841c21
@ -18,7 +18,7 @@ int main() {
|
||||
while (loading_string[iterating_index] != ' ' && loading_string[iterating_index] != '\0' && loading_string[iterating_index] != '\n') {
|
||||
iterating_index++;
|
||||
}
|
||||
if (loading_string == '\n') break;
|
||||
if (loading_string[iterating_index] == '\n') break;
|
||||
int number_size = iterating_index-starting_index;
|
||||
int current_number = 0;
|
||||
for (int l=0;l<number_size;l++) {
|
||||
@ -38,11 +38,6 @@ int main() {
|
||||
starting_index = iterating_index;
|
||||
}
|
||||
printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",max_number_user_pair[1], max_number_user_pair[0]);
|
||||
int i = 0;
|
||||
while(i != '\0') {
|
||||
printf("%d ", loading_string[i]);
|
||||
i++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user