diff --git a/Makefile.win b/Makefile.win new file mode 100644 index 0000000..8ea9cfc --- /dev/null +++ b/Makefile.win @@ -0,0 +1,28 @@ +# Project: 课设 +# Makefile created by Dev-C++ 5.7.1 + +CPP = g++.exe +CC = gcc.exe +WINDRES = windres.exe +OBJ = main.o +LINKOBJ = main.o +LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/mingw32/lib" -static-libstdc++ -static-libgcc -g3 +INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/gcc/mingw32/4.8.1/include" +CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/gcc/mingw32/4.8.1/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/gcc/mingw32/4.8.1/include/c++" +BIN = 课设.exe +CXXFLAGS = $(CXXINCS) -g3 -std=c99 +CFLAGS = $(INCS) -g3 -std=c99 +RM = rm.exe -f + +.PHONY: all all-before all-after clean clean-custom + +all: all-before $(BIN) all-after + +clean: clean-custom + ${RM} $(OBJ) $(BIN) + +$(BIN): $(OBJ) + $(CC) $(LINKOBJ) -o $(BIN) $(LIBS) + +main.o: main.c + $(CC) -c main.c -o main.o $(CFLAGS) diff --git a/main.c.c b/main.c similarity index 99% rename from main.c.c rename to main.c index 067a0a1..17e2426 100644 --- a/main.c.c +++ b/main.c @@ -32,7 +32,7 @@ struct node{ int main(int argc, char *argv[]) { - //if(!login())return 0; + if(!login())return 0; menus(); char choice; while(1){ diff --git a/main.c.exe b/main.c.exe new file mode 100644 index 0000000..763d50c Binary files /dev/null and b/main.c.exe differ diff --git a/main.exe b/main.exe index 315f7f1..c1d58d3 100644 Binary files a/main.exe and b/main.exe differ diff --git a/main.o b/main.o index 62905ce..e61e07f 100644 Binary files a/main.o and b/main.o differ diff --git a/璇捐.dev b/璇捐.dev index 52656f6..c540d90 100644 --- a/璇捐.dev +++ b/璇捐.dev @@ -61,7 +61,7 @@ OverrideBuildCmd=0 BuildCmd= [Unit1] -FileName=课程设计源代码_班级档案管理系统_计算机大类1804_18408000416_钱裕隆.c +FileName=main.c CompileCpp=0 Folder=课设 Compile=1 diff --git a/璇捐.exe b/璇捐.exe new file mode 100644 index 0000000..4aad33e Binary files /dev/null and b/璇捐.exe differ diff --git a/璇捐.layout b/璇捐.layout index 8d661e9..28e5862 100644 --- a/璇捐.layout +++ b/璇捐.layout @@ -4,8 +4,8 @@ Order=0 [Editor_0] Open=1 Top=1 -CursorCol=22 -CursorRow=7 +CursorCol=16 +CursorRow=14 TopLine=1 LeftChar=1 [Editor_1]