Изменить 'du6/program.c'
This commit is contained in:
parent
8ab0829f42
commit
28567fb539
@ -11,11 +11,11 @@ int main(){
|
|||||||
int count = 0;
|
int count = 0;
|
||||||
char temp[50];
|
char temp[50];
|
||||||
|
|
||||||
for(int i =0; fgets(inputs[i], 50, stdin) != NULL; i++){
|
for(int i = 0; fgets(inputs[i], 50, stdin) != NULL; i++){
|
||||||
if(i == 0){
|
if(i == 0){
|
||||||
freePlaces = strtol(inputs[0], &ptr, 10);
|
freePlaces = strtol(inputs[0], &ptr, 10);
|
||||||
if(freePlaces < 0 || !isdigit(freePlaces)){
|
if(freePlaces < 0 || !isdigit(freePlaces)){
|
||||||
printf("Nespravny vstup\n");
|
printf("Nespravny vstup %d\n", freePlaces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(i == 1 && !isalpha(inputs[i][0])){
|
else if(i == 1 && !isalpha(inputs[i][0])){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user