Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 20th, 2005, 2:28 PM   #11
peace_of_mind
Professional Programmer
 
peace_of_mind's Avatar
 
Join Date: Sep 2004
Location: Hell if I know most of the time
Posts: 439
Rep Power: 5 peace_of_mind is on a distinguished road
Send a message via MSN to peace_of_mind Send a message via Yahoo to peace_of_mind
Quote:
Originally Posted by bl00dninja
are you reffering to dev-c++ shutting down your app in less than a second? it'll do that without a getch or something like that. that's why i use borland.
I'm not gonna guess at a solution until an actual question is asked. Some kind of detail and more importantly, the code, will probably lead to a quick solution. We just have to get there...
__________________
Amateurs built the ark
Professionals built the Titanic

peace_of_mind is offline   Reply With Quote
Old Apr 21st, 2005, 4:06 AM   #12
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
you have to remember if you are using windows (which i guess you are) then the dos window shuts down so fast you wont see your output so add this to the end of your code

for(;;)

that will create an infinate loop so you can see your output and to end just use ctrl+c
Berto is offline   Reply With Quote
Old Apr 21st, 2005, 7:12 AM   #13
peace_of_mind
Professional Programmer
 
peace_of_mind's Avatar
 
Join Date: Sep 2004
Location: Hell if I know most of the time
Posts: 439
Rep Power: 5 peace_of_mind is on a distinguished road
Send a message via MSN to peace_of_mind Send a message via Yahoo to peace_of_mind
 getchar (); /* waits for a key to be pressed before exiting */
__________________
Amateurs built the ark
Professionals built the Titanic

peace_of_mind is offline   Reply With Quote
Old Apr 21st, 2005, 8:07 AM   #14
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
i never knew that thanks POM
Berto is offline   Reply With Quote
Old Apr 21st, 2005, 10:43 AM   #15
duomax51
Newbie
 
duomax51's Avatar
 
Join Date: Apr 2005
Posts: 12
Rep Power: 0 duomax51 is on a distinguished road
Thanks
__________________
:D :eek: :cool: Joe Thompson
duomax51 is offline   Reply With Quote
Old Apr 24th, 2005, 12:07 AM   #16
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6 bl00dninja is on a distinguished road
yeah what you want to do exactly in code is this (i just figured this crap out like yesterday)

#include <iostream>
#include <conio.h>     //    <--  need this header file
using namespace std;

cout<<"hello world!"<<endl;

getch();     //   <-- here's the magical function!

return 0;

}

now i can just use dev-c++, yay! ***as everyone laughs at the bl00dninja for not knowing this trick sooner*** just hit any character to make that pretty little window minimize itself whenever you feel like it.

getch() is a "non-standard-library" function that accepts unbuffered/unechoed input so it may not be included in all of your compilers. i still like borland's error codes though, even though they don't HIGHLIGHT the line of code that is being gay. but now i use both. stupid me. portability issues ensue...
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Apr 25th, 2005, 4:37 AM   #17
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
i tend to code on linux mainly i try to avod windows programming, just bugs me.
Berto is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:47 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC