I have to submit a C++ project for marking soon, and I call system("cls")
to clear the console a few times in my code. I know there are better methods but I just went for the easiest option.
As far as I am aware, system("cls")
only works in Windows. The person who is going to mark my code will be using a virtual Windows machine in a computer with Mac. I have never used a virtual machine and I don't know much about them so I just want to make sure my code will run fine.
是的,它会的。 Windows VM包含在虚拟处理器(在“管理程序”的控制下)运行的常规Windows安装。