I have a huge c++ program (gcc compiled) that runs on a linux console. It's an interactive program in the sense that it requires the user to enter some information through the console in order to process and give some complicated output (cout, cin). For a naive illustration, imagine a program asking you for your age on the console, you enter it and the program gives you your year of birth. The same, but a bit more complicated is my program.
My problem is just that I need it to be executed in a browser by people on the other side of the world. I do have a server where it can run, but I don't know how to make the necessary interface. Can someone of you help me out?