我正在使用Mac上的CodeBlocks(C++)。在Windows机器上,我通常使用system("cls")。我如何在Mac上使用类似的功能?谢谢。
macOS使用system("clear");
system("clear");
虽然有更好的解决方案