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
|
@ -20,4 +20,4 @@ int main() {
|
||||
}
|
||||
printf("\nLines count: %d\n", c2);
|
||||
return 0;
|
||||
}
|
||||
}
|
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 '/':
|
||||
if (cislo2 == 0) {
|
||||
printf("ZLE\n");
|
||||
continue;;
|
||||
continue;
|
||||
}
|
||||
result2 = cislo1 / cislo2;
|
||||
break;
|
||||
default:
|
||||
printf("CHYBA\n");
|
||||
continue;;
|
||||
continue;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -58,4 +59,6 @@ int main() {
|
||||
}
|
||||
|
||||
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