Firstly, sorry for my English. Is it possible to start .exe program with php script and pass input after the program has started. I can't use command line arguments.
#include <iostream>
using namespace std;
int main() {
int a, b;
cin>>a>>b;
return a+b;
}