I wanted to Know the function by using that I can run DOS Commands.... ???
Printable View
I wanted to Know the function by using that I can run DOS Commands.... ???
(stdlib.h)
system()
Thanx... for the Help... ... . . !Quote:
Originally posted by Fordy
(stdlib.h)
system()
#include <cstdlib>
system("command");
also works...for example, to clear screen:
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
void main()
{
cout << "Hello" << endl; //Output
system("cls"); //Clears screen
}
Its the same thing as Fordy's answer, just found in a different header.