Does anyone know how to call a binary executable file from another program.
I have a simple binary file which can take command line arguments called InputProgram.exe.
I have made another program of which I want to call InputProgram from and pass it an argument.
Not this is going to look naive but this is what I have. It doesn't work?
I genuinly don't know how to do it?
include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
char x;
cin >> x;
cout << x + " " + (InputProgram p) << endl;
system("pause>null");
}