You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I wrote a C++ program and built it into exe.
The CPP code as following:
`#include
using namespace std;
int main()
{
int s[10];
for(int i = 0; i <10; i++)
{
cin>>s[i];
}
}`
This program allow user to input ten integers into an array.
It runs well in windows terminal window, but it runs wrong in your sample project.
In your sample project, I started a new process and fill the exe path into the filename textbox, then click OK button, the exe runs. but after i input four integers, the process exit.
I tried many times, it happend with same result.
So, Could you help me to take a look at your code("ProcessInterface.cs WriteInput function")?
Because I found after I input the fourth integer, and press enter, the process exit after "inputWriter.Flush();" execute.
Thanks a lot for your help!
Have a nice day!
The text was updated successfully, but these errors were encountered:
Hello,
I wrote a C++ program and built it into exe.
The CPP code as following:
`#include
using namespace std;
int main()
{
int s[10];
for(int i = 0; i <10; i++)
{
cin>>s[i];
}
}`
This program allow user to input ten integers into an array.
It runs well in windows terminal window, but it runs wrong in your sample project.
In your sample project, I started a new process and fill the exe path into the filename textbox, then click OK button, the exe runs. but after i input four integers, the process exit.
I tried many times, it happend with same result.
So, Could you help me to take a look at your code("ProcessInterface.cs WriteInput function")?
Because I found after I input the fourth integer, and press enter, the process exit after "inputWriter.Flush();" execute.
Thanks a lot for your help!
Have a nice day!
The text was updated successfully, but these errors were encountered: