Could somebody tell me : why C or Cpp program running on VisualStudio always show up in a second and disappears? | Sololearn: Learn to code for FREE!

0

Could somebody tell me : why C or Cpp program running on VisualStudio always show up in a second and disappears?

somebody told me that I should return 1 not return 0 at the end;I think it is absurd

11/6/2017 12:04:37 PM

yinhao liang

3 Answers

New Answer

+8

puts("Press <enter> to quit:"); or getch(); both will work in C

+7

https://stackoverflow.com/questions/1775865/preventing-console-window-from-closing-on-visual-studio-c-c-console-applicatio