Original Post
I'm building an application that has to do a lot of heavy-duty computational geometry, and I've decided to use the Wild Magic 5 library as a base for the program.
The program just needs to run in a console--there's nothing to draw--so I'm using the ConsoleApplication framework provided by Wild Magic 5.
But it appears that my program is unable to write to or read from the console. Any such commands are just ignored.
For instance, this does nothing:
BilliardProjection is the application class inheriting from ConsoleApplication. I've followed the precise setup used for the Imagics samples, which also use the console. I experimented with those samples, and they are also unable to interact with the user.
Has anybody experienced this problem before? I've looked at the code for Wild Magic 5 and can't see anything that causes this, and I haven't found any documentation mentioning the inability of a console application to interact with the user through the console.
The code in that function is definitely executed, though, because I can successfully write to a file from there, for instance.
The program just needs to run in a console--there's nothing to draw--so I'm using the ConsoleApplication framework provided by Wild Magic 5.
But it appears that my program is unable to write to or read from the console. Any such commands are just ignored.
For instance, this does nothing:
int BilliardProjection::Main(int, char**){ std::cout << "hello" << std::endl; int n; std::cin >> n; return 0;}BilliardProjection is the application class inheriting from ConsoleApplication. I've followed the precise setup used for the Imagics samples, which also use the console. I experimented with those samples, and they are also unable to interact with the user.
Has anybody experienced this problem before? I've looked at the code for Wild Magic 5 and can't see anything that causes this, and I haven't found any documentation mentioning the inability of a console application to interact with the user through the console.
The code in that function is definitely executed, though, because I can successfully write to a file from there, for instance.