How do you clear the screen in C++? I tried using clrscr() in <conio.h>, but I learned that this function is only available in the Windows Environment. I'm using Xcode on a Mac, so is there any function that clears the screen available for all platforms? Thanks in advance.
Clearing the screen is a platform-specific thing to do, so you need to use platform-specific code. You can choose between which platform's code to use when compiling.