Answers for "&lt"

C++
0

&lt

#include <iostream> 
#include <cstdlib>  
using namespace std;
 
int main ()
{
  int i;
  cout<< "Check if command processor is available..."<<endl;
  if (system(NULL)) cout << "command processor is available!!"<<endl;
    else exit (EXIT_FAILURE);
  cout<< "Executing command DIR..."<<endl;
  i=system ("dir");
  cout << "The value returned was:"<<i<<endl;
  return 0;
}
Posted by: Guest on September-27-2021

Code answers related to "&lt"

Browse Popular Code Answers by Language