Hi all, I can't seem to make the system() syntax work in my program.. I need to run a command from the command line using C++..

I tried a basic example and used this command

system("cls");

instead of clrscr() and executed using my old c++ compiler. It doesn't work. Even on a win32 console app in Visual Studio 2008.

This is my first time using this syntax because we were told to avoid the use of system("PAUSE"); syntax since high school. Anyway.

If anyone knows a solution or a workaround, please let me know. Thanks in advance! :D

what do you mean it doesn't work?? I use system("cls"); occasionally and never had a problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.