Clear screen function in C++

How can I use a clearscreen function in a cpp file created on atom?
I always get errors saying clrscr() is not defined.
I want to get some solution for this!