sophuwu.site > sysgraph
Added cmake.
sophuwu sophie@sophuwu.site
Sat, 05 Aug 2023 15:28:25 +0200
commit

dc7d78f35a8b20e290b01dffa69b95eff80ddcbe

parent

72d7f489b9e2430c045e8464986d3730af5cf96b

3 files changed, 11 insertions(+), 1 deletions(-)

jump to
M .gitignore.gitignore

@@ -1,2 +1,5 @@

+cmake-build-debug +build .idea a.out +sysgraph
A CMakeLists.txt

@@ -0,0 +1,6 @@

+cmake_minimum_required(VERSION 3.25) +project(sysgraph) + +set(CMAKE_CXX_STANDARD 17) + +add_executable(sysgraph main.cpp)
M main.cppmain.cpp

@@ -110,7 +110,8 @@ exit(signum);

} std::string padint(int n, int len){ - for (std::string s = std::to_string(n); s.length() < len; s = " " + s); + std::string s = std::to_string(n); + for (; s.length() < len; s = " " + s); return s; }