-7

I want to write a program which will show the numeric value of odd, even & zero values in array. The problem is that when I input values in array, C++ compiler doesn’t view the result and finishes the output window . Is there any solution for this?

  • This makes no sense at all. What do you mean by "view the result", and "finishes the output box"? – Oliver Charlesworth Jun 18 '11 at 10:50
  • 6
    Solution: Seven. – dacwe Jun 18 '11 at 10:51
  • Welcome to StackOverflow. It's difficult to tell what is being asked here. Your question is ambiguous, vague, incomplete and cannot be reasonably answered in its current form. Please re-read [How To Ask](http://stackoverflow.com/questions/how-to-ask) and revise your question. – johnsyweb Jun 18 '11 at 10:53
  • Takico probably meant [something like this](http://stackoverflow.com/questions/1775865/) – fredoverflow Jun 18 '11 at 10:53
  • You need to give some context to your questions, see [here](http://ledohoanglong.wordpress.com/2011/04/27/start-at-stackoverflow-writing-good-question-answer/) – Node Jun 18 '11 at 10:55

1 Answers1

2

Assuming you mean why the console window closes, you can add cin.get() to the end.

mparizeau
  • 663
  • 5
  • 12