fix nacitavania poslednej hodnoty 3
This commit is contained in:
parent
72f920a8ad
commit
3696e2faa6
@ -15,9 +15,10 @@ int main() {
|
||||
int max_number_user_pair[2] = {0,0};
|
||||
int starting_index = 0;
|
||||
while(starting_index<string_index) {
|
||||
while (loading_string[iterating_index] != ' ' && loading_string[iterating_index] != '\0') {
|
||||
while (loading_string[iterating_index] != ' ' && loading_string[iterating_index] != '\0' && loading_string != '\n') {
|
||||
iterating_index++;
|
||||
}
|
||||
if (loading_string == '\n') break;
|
||||
int number_size = iterating_index-starting_index;
|
||||
int current_number = 0;
|
||||
for (int l=0;l<number_size;l++) {
|
||||
|
Loading…
Reference in New Issue
Block a user