0

Hallo,
i have a programm, it works without errors , the only problem i have is that the .exe file works for one line and then it closes from itself
how can i change this problem.
i must give this .exe file in 4 days !!
thanks

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by Ancient Dragon
0

At the very beginning of the main function, insert the line return 0; . Then it will work for zero lines. Problem changed!

HTH HAND

You can't expect serious help on a problem if you don't even explain what the problem is. Unless you need vague, obvious advice, like, "debug the program."

0

Hallo,
i have a programm, it works without errors

, the only problem i have is that the .exe file works for one line and then it closes from itself

Those two statements contradict each other. Apparently the first statement is false.

Post your program so we can see and test it. Do you mean you don't have a chance to see the program's output because the program closes too fast? If that's the case then put a getchar() just before the return statement in main().

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.