lundi 29 août 2016

Why should the system() function be avoided in C and C++?

I have seen a lot of people on forums telling to avoid the system() function, like system("cls"). I don't understand why.

Please tell me why I should avoid this function. And also, as clrscr() doesn't work with CodeBlocks, what are other ways to clear screen without using the system() function?

Aucun commentaire:

Enregistrer un commentaire