The First task is done
This commit is contained in:
parent
0e3d948c9f
commit
136c9f6b00
16 changed files with 469 additions and 0 deletions
19
2025.03.07/Example/Makefile
Normal file
19
2025.03.07/Example/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FLAGS = -fstack-protector-all -W -Wall -Wextra -Wunused -Wcast-align -Werror -pedantic -pedantic-errors -Wfloat-equal -Wpointer-arith -Wformat-security -Wmissing-format-attribute -Wformat=1 -Wwrite-strings -Wcast-align -Wno-long-long -std=gnu99 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wdeclaration-after-statement -Wbad-function-cast -Wnested-externs -O3
|
||||
|
||||
a08.exe: main.o array.o solve.o sort.o
|
||||
gcc main.o solve.o array.o sort.o -o a08.exe -lssp
|
||||
|
||||
main.o: main.c
|
||||
gcc $(CFLAGS) -c main.c
|
||||
|
||||
solve.o: solve.c
|
||||
gcc $(FLAGS) -c solve.c
|
||||
|
||||
array.o: array.c
|
||||
gcc $(CFLAGS) -c array.c
|
||||
|
||||
sort.o: sort.c
|
||||
gcc $(CFLAGS) -c sort.c
|
||||
|
||||
clean:
|
||||
del *.o *.exe
|
8
2025.03.07/Example/array_io.h
Normal file
8
2025.03.07/Example/array_io.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef ARRAY_IO_H
|
||||
#define ARRAY_IO_H
|
||||
|
||||
io_status read_matrix(double *a, int n, int m, const char *name);
|
||||
void print_matrix(const double *a, int n, int m, int p);
|
||||
void init_matrix(double *a, int n, int m);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue