refresh
This commit is contained in:
parent
e64ed639e3
commit
1963645434
11
Makefile
Normal file
11
Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
CC = gcc
|
||||||
|
CFLAGS = -Wall -Wextra -std=c99
|
||||||
|
dIRS = a1 du1 du2 du3 du4
|
||||||
|
all:
|
||||||
|
@for %%d in ($(dIRS)) do \
|
||||||
|
$(CC) $(CFLAGS) %%d\program.c -o %%d\program.exe
|
||||||
|
clean:
|
||||||
|
@for %%d in ($(dIRS)) do \
|
||||||
|
if exist %%d\program.exe del %%d\program.exe
|
||||||
|
build-%:
|
||||||
|
$(CC) $(CFLAGS) $*/program.c -o $*/program.exe
|
BIN
a1/program.exe
BIN
a1/program.exe
Binary file not shown.
Binary file not shown.
BIN
du1/program.exe
BIN
du1/program.exe
Binary file not shown.
BIN
du2/program.exe
BIN
du2/program.exe
Binary file not shown.
Binary file not shown.
@ -38,13 +38,14 @@ int main() {
|
|||||||
case '/':
|
case '/':
|
||||||
if (cislo2 == 0) {
|
if (cislo2 == 0) {
|
||||||
printf("ZLE\n");
|
printf("ZLE\n");
|
||||||
continue;;
|
continue;
|
||||||
}
|
}
|
||||||
result2 = cislo1 / cislo2;
|
result2 = cislo1 / cislo2;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("CHYBA\n");
|
printf("CHYBA\n");
|
||||||
continue;;
|
continue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -59,3 +60,5 @@ int main() {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
BIN
du3/program.exe
BIN
du3/program.exe
Binary file not shown.
Binary file not shown.
BIN
du4/program.exe
Normal file
BIN
du4/program.exe
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user