diff --git a/.gitignore b/.gitignore index 600d2d3..6a8bc10 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.vscode \ No newline at end of file +.vscode +build \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..e7582cb --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.0.0) +project(lc VERSION 0.1.0) + +include(CTest) +enable_testing() + +add_executable(lc main.cpp) + +set(CPACK_PROJECT_NAME ${PROJECT_NAME}) +set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) +include(CPack) diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..33754cd --- /dev/null +++ b/main.cpp @@ -0,0 +1,21 @@ +#include +#include + +using namespace std; + +struct ListNode { + int val; + ListNode *next; + ListNode(int x) : val(x), next(NULL) {} +}; + +class Solution { +public: + vector reversePrint(ListNode* head) { + + } +}; + +int main(int, char**) { + std::cout << "Hello, world!\n"; +} diff --git a/offer06.cpp b/offer06.cpp new file mode 100644 index 0000000..e69de29