Author Topic: New to C++ : How to pause program  (Read 4290 times)

jayesh29

  • Guest
New to C++ : How to pause program
« on: October 03, 2014, 05:55:50 pm »
Hi,

I'm a complete beginner to C and C++ programming (Started yesterday) and I'm really sorry if this has been asked before but I have looked everywhere on the internet and I just can't seem to fix this.

When I build and run my program in CodeBlocks, it works perfectly and asks me to press a key before it exits, however, when I try to run the main file from the project folder, after the program runs, it closes very quickly. Other forums suggest I use the system("pause") or Cin before return but it isn't working.

Would really appreciate a reply and once again apologies if this is a redundant/dumb question.
« Last Edit: October 03, 2014, 05:57:31 pm by jayesh29 »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: New to C++ : How to pause program
« Reply #1 on: October 03, 2014, 06:08:50 pm »
PLease (re-)read the forum rules and follow them !!

Topic locked !