When I want a C# process to wait for any key press from Standart Input (stdin), I can use Console.In.ReadLine. I use it for a parent c# console application can send writeline event to a child console process. Using:
process.StandartInput.WriteLine("some_content");
And the child process can catch the writing, and do something.
Everything is OK when the child is C#, but when it's C++, I can't find some thing to replace Console.In.
Is there an equivalent in C++ for Console.In.ReadLine
. I did many search about C++ read from stdin, like here, they said about getch, getchar, system("pause")..., but seem like they cannot "catch" the parent write event.