Skip to content

Instantly share code, notes, and snippets.

@InputBlackBoxOutput
Created December 11, 2022 01:26
Show Gist options
  • Save InputBlackBoxOutput/0152852b46987d8bf38c77bbbd94cf2a to your computer and use it in GitHub Desktop.
Save InputBlackBoxOutput/0152852b46987d8bf38c77bbbd94cf2a to your computer and use it in GitHub Desktop.
A workaroud to use clear as a command to clear Command Prompt
// A workaroud to use clear as a command to clear Command Prompt
// Step 1: g++ clear.cpp -o clear.exe
// Step 2: Add clear.exe directory to PATH enviroment variable
#include<cstdlib>
int main() {
system("cls");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment