Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Problem With Input. #65

Closed
luckcao opened this issue Dec 1, 2024 · 1 comment
Closed

Some Problem With Input. #65

luckcao opened this issue Dec 1, 2024 · 1 comment

Comments

@luckcao
Copy link

luckcao commented Dec 1, 2024

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!

@luckcao luckcao closed this as completed Dec 1, 2024
@luckcao
Copy link
Author

luckcao commented Dec 1, 2024

Sorry, I posted twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant