From 5e209ccb1850c50dfc366eafc92ed2ce351e7b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=9D=82=E6=98=B4?= Date: Wed, 23 Oct 2024 21:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homework3/CMakeLists.txt | 1 + homework3/Stack.cpp | 1 + homework3/Stack.h | 1 + homework3/test1.cpp | 1 + homework3/test2.cpp | 8 ++++++++ 5 files changed, 12 insertions(+) create mode 100644 homework3/test2.cpp diff --git a/homework3/CMakeLists.txt b/homework3/CMakeLists.txt index 7806f16..eae6355 100644 --- a/homework3/CMakeLists.txt +++ b/homework3/CMakeLists.txt @@ -7,3 +7,4 @@ add_executable(test1 Stack.h Stack.cpp test1.cpp) +add_executable(test2 test2.cpp) diff --git a/homework3/Stack.cpp b/homework3/Stack.cpp index b6766df..594e04a 100644 --- a/homework3/Stack.cpp +++ b/homework3/Stack.cpp @@ -1,3 +1,4 @@ +//Stack.cpp #include "Stack.h" #include diff --git a/homework3/Stack.h b/homework3/Stack.h index 62a8fd5..0161e5b 100644 --- a/homework3/Stack.h +++ b/homework3/Stack.h @@ -1,3 +1,4 @@ +//Stack.h #ifndef STACK_H #define STACK_H diff --git a/homework3/test1.cpp b/homework3/test1.cpp index d6f5983..9e1065c 100644 --- a/homework3/test1.cpp +++ b/homework3/test1.cpp @@ -1,3 +1,4 @@ +//test1.cpp #include"Stack.h" #include using namespace std; diff --git a/homework3/test2.cpp b/homework3/test2.cpp new file mode 100644 index 0000000..98f114b --- /dev/null +++ b/homework3/test2.cpp @@ -0,0 +1,8 @@ +//test2.cpp +#include + +using namespace std; + +int main() { + return 0; +}