i am a beginner in cpp programming. when i was writing program to learn structures, the output of the program disappears after a fraction of a second. i am not even able to see the output. the output window stayed on the screen the first time i run the program, but not afterwards.
i have used getchar();
where am i going wrong?