Update du1/program.c
halala exity
This commit is contained in:
parent
c67c0a7b7b
commit
d7caffffcf
@ -31,15 +31,15 @@ int main(){
|
|||||||
//vyhodnotenie vysledkov pomocnej funkcie
|
//vyhodnotenie vysledkov pomocnej funkcie
|
||||||
if (vyhodnotenie == -1) {
|
if (vyhodnotenie == -1) {
|
||||||
printf("Vstupny input je NULL\n");
|
printf("Vstupny input je NULL\n");
|
||||||
exit(1);
|
exit(0);
|
||||||
}
|
}
|
||||||
if (vyhodnotenie == -2) {
|
if (vyhodnotenie == -2) {
|
||||||
printf("Vstupny input je prazdny\n");
|
printf("Vstupny input je prazdny\n");
|
||||||
exit(1);
|
exit(0);
|
||||||
}
|
}
|
||||||
if (vyhodnotenie == -3) {
|
if (vyhodnotenie == -3) {
|
||||||
printf("Nepodarilo sa nacitat zaklad x\n");
|
printf("Nepodarilo sa nacitat zaklad x\n");
|
||||||
exit(1);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//nejak horner
|
//nejak horner
|
||||||
@ -56,7 +56,7 @@ int main(){
|
|||||||
} else
|
} else
|
||||||
if (vyhodnotenie == -1) {
|
if (vyhodnotenie == -1) {
|
||||||
printf("Vstupny input je NULL\n");
|
printf("Vstupny input je NULL\n");
|
||||||
exit(1);
|
exit(0);
|
||||||
} else
|
} else
|
||||||
if (vyhodnotenie == -3) {
|
if (vyhodnotenie == -3) {
|
||||||
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", idx + 1);
|
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", idx + 1);
|
||||||
@ -68,7 +68,7 @@ int main(){
|
|||||||
|
|
||||||
if (idx == 0) {
|
if (idx == 0) {
|
||||||
printf("Nebol nacitany ziaden vstup\n");
|
printf("Nebol nacitany ziaden vstup\n");
|
||||||
exit(1);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < idx; i++) {
|
for (int i = 0; i < idx; i++) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user