c++ clear console

C++
#include <Windows.h>

int main() {
	//print stuff
    
	system("cls"); // clear console
}system ("CLS");
Source

Also in C++: