is there any easy way for a program to determine which OS is running it? if not, is there any way at all besides a user putting the information in at setup or something? what I eventually want to do is write something like this:I already know clearing the screen should be avoided at all times, but I just wanted to create something that is a little more portable for the times where I really really need to clear the screen... (please don't post other ways to clear the screen... I really just want to know if/how you can determine which OS is running)Code:void ClearScreen() { if(OS=='W') system("cls"); else if(OS=='L') system("clear"); else { for(int i=500;i>1;i++) std::cout<<std::endl; } }