Skip to main content
0 online
theremin Jul 26, 2006

This following program compiles w/o errors, but it's not running when I try to run it. The screen just flinches. #include <cstdlib> #include <iostream> using namespace std; ...

yay yayOG 2004

The screen is closing before you can see the output, run in a command line window or figure out how to put a key capture at the end (like getch() or _getch())

yay yayOG 2004

*bump*
I was right? I see system("pause");

I think I've seen this problem/solution nearly 50 times.

theremin thereminOG 2002

isn't getch only in C?

didn't know C++ has the command

gonna flip thru my book

D
dgiaimoOG 2003

Anything (almost) in C is also in C++.

yay yayOG 2004

Yeah the new standard even puts these into the namespace by making new standard headers prefixed with c, like cmath, and cstdlib, cstdio

Welcome Back to eZabel

It's been a while. Here's what's new.

eZabel Lore

A complete history of our community — stats, Hall of Fame, legendary threads, and more.

View the Lore →

Everything Preserved

All 225,969 pieces of content from 2000–2014 are here — forums, messages, journals, photos, polls, and events.

💎

Gems

Spot something you love — a legendary comment, a classic thread, a great photo? Log in and click the diamond icon to mark it as a Gem. Add a note about why it's special. The best stuff surfaces on the Gems page.