how to check if the OS is Windows or Debian in c++?
- by tsubasa
I want to clear console screen every time the user make an input in C++.
I'm thinking of using system command. For Windows, it is "cls". For Linux, it is "clear". Is there a way check which system to use the appropriate command in c++?
Thanks.