Hello everyone!i'm new here and in c++ programming.I've wrote about 30 small programs and when i close the program and want it to run after, it compile well but when i'm waiting the answer, it comes and goes fast.i've tried to put cin >> a; as told me someone to solve the problem when running each program but it couldn't as from now.please help.i'm very confused.

I use

cin.get();
cin.ignore(); 

for stopping the window from closing.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.