From d8cccfca2285d5dd977712bd232442eedd828f7e Mon Sep 17 00:00:00 2001 From: GreatFood404 Date: Fri, 9 May 2025 11:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 9 +++++++++ main.cpp | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 main.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..05bf8a7 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.30) +project(sdktools) + +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) +set(CMAKE_CXX_STANDARD 20) + +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++") + +add_executable(sdktools main.cpp) diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..1fcb119 --- /dev/null +++ b/main.cpp @@ -0,0 +1,20 @@ +#include + +using namespace std; +int main() { + while (true) { + string command; + cout << ">>>"; + getline(cin, command); + + if (command == "list"){ + cout << "list" <