Reputation:
I'm using codeblocks (c++) on a mac. I usually use system("cls") when using a windows machine. How can I use something similar on the mac? thanks.
Upvotes: 4
Views: 13349
Reputation: 163
macOS uses system("clear");
though there are better solutions
Upvotes: 5