Register
Members List
Social Groups
Search
Today's Posts
Mark Forums Read
Member Login
Remember Me?
Sign Up!
|
Forgot Password
Computer Forums
>
Programmers Lounge
>
Programming Discussions
» pause command for c++
LinkBack
Thread Tools
Display Modes
06-14-2004, 01:48 PM
#
1
(
permalink
)
Tallyrand
Newb Techie
Join Date: Jun 2004
Posts: 8
pause command for c++
#include <iostream>
int main ()
{
using namespace std;
cout << "Text";
return 0;
}
----------------------------------------------------------------------------------
the console screen shuts whenever i open it how would i pause it so it wont shut.
06-15-2004, 01:04 PM
#
2
(
permalink
)
zoerb
Junior Techie
Join Date: Oct 2003
Posts: 85
try including conio.h and call the function getch();
__________________
Asus A7n8x-x
athlon 2800
radeon 9600 pro
512 mb 2700 mem
western digital 80gb special edition
06-15-2004, 09:58 PM
#
3
(
permalink
)
spartanM19SSM
True Techie
Join Date: Jun 2004
Posts: 106
Well, first, are you using C++.NET? If you are then instead of that use cin.ignore(); on a line before the return statement...
__________________
OSS and Linux is the way to go!!!
tuxxman.homelinux.net
07-15-2004, 12:51 PM
#
4
(
permalink
)
petogaz
True Techie
Join Date: Jan 2004
Posts: 164
if you're using DevC++ include system("PAUSE") on a line before return 0.
__________________
\"you cant hold a good techie down\"
07-22-2004, 08:43 AM
#
5
(
permalink
)
Deathwalker
Junior Techie
Join Date: Nov 2002
Posts: 68
If you include the windows.h file you can use the Sleep();command, with the duration within the parenthesis.
__________________
Talk is based on the assumption that you can get somewhere if you keep putting one word after another
«
Server on computer??
|
bioinformatics
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
Contact Us
-
Computer Technology Forums
-
Archive
-
Top
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Furl this Thread!