Forráskód Böngészése

Fix screen clear function and test git

Zhilong Li 4 éve
szülő
commit
6c1f45bb23
2 módosított fájl, 4 hozzáadás és 4 törlés
  1. 2 2
      CMakeLists.txt
  2. 2 2
      include/process_bar.hpp

+ 2 - 2
CMakeLists.txt

@@ -1,7 +1,7 @@
-cmake_minimum_required(VERSION 3.19)
+cmake_minimum_required(VERSION 3.16)
 project(CppYoutube)
 
 set(CMAKE_CXX_STANDARD 17)
 
 include_directories(include)
-add_executable(CppYoutube main.cpp)
+add_executable(CppYoutube main.cpp)

+ 2 - 2
include/process_bar.hpp

@@ -8,7 +8,7 @@ void rotate()
     while (i < 100)
     {
         cout << rotater[i % 4];
-        system("clear");
+        system("reset");
         i++;
     }
-}
+}