This commit is contained in:
2026-02-24 12:12:12 +07:00
parent b7df98a55c
commit c2529abe7f
32 changed files with 77 additions and 182 deletions
+38
View File
@@ -0,0 +1,38 @@
create 0 3 3
input 0
1 2 3
4 5 6
7 8 9
getmatrix 0
n n
transp 0
getmatrix 0
n n
create 1 3 3
random 1
getmatrix 1
n
logic 0 1 >= n
logic 0 0 == n
edit 0
add
1 1 1
1 1 1
1 1 1
getmatrix 0
n
edit 0
point 1:1
sub
10 10
getmatrix 0
n
getcolum 0 1
getrow 0 2
n
copy 0 5
getmatrix 5
n
determ 5
destruct 5
exit
+28
View File
@@ -0,0 +1,28 @@
CC = gcc
CFLAGS = -Wall -Wextra -I../ -g
TARGET = matrix
SRC_DIR = ../code
OBJ_DIR = ../.o
SRCS = $(wildcard $(SRC_DIR)/*.c)
OBJS = $(patsubst $(SRC_DIR)/%.c, $(OBJ_DIR)/%.o, $(SRCS))
.PHONY: all clean run
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(TARGET)
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
@mkdir -p $(OBJ_DIR)
$(CC) $(CFLAGS) -c $< -o $@
run: $(TARGET)
./$(TARGET) < input > output
@cat output
clean:
rm -rf $(OBJ_DIR) $(TARGET) output
BIN
View File
Binary file not shown.