I wanted to Know the function by using that I can run DOS Commands.... ???
I wanted to Know the function by using that I can run DOS Commands.... ???
One day you will ask what more important to you..
I will say my life..
and You will leave me with even knowing
that
You are my Life (L)
(stdlib.h)
system()
Thanx... for the Help... ... . . !Originally posted by Fordy
(stdlib.h)
system()
One day you will ask what more important to you..
I will say my life..
and You will leave me with even knowing
that
You are my Life (L)
#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.
Couldn't think of anything interesting, cool or funny - sorry.