![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | |
|
Professional Programmer
|
Quote:
__________________
Amateurs built the ark Professionals built the Titanic |
|
|
|
|
|
|
#12 |
|
Programming Guru
![]() |
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 |
|
|
|
|
|
#13 |
|
Professional Programmer
|
getchar (); /* waits for a key to be pressed before exiting */
__________________
Amateurs built the ark Professionals built the Titanic |
|
|
|
|
|
#14 |
|
Programming Guru
![]() |
i never knew that thanks POM
|
|
|
|
|
|
#15 |
|
Newbie
Join Date: Apr 2005
Posts: 12
Rep Power: 0
![]() |
Thanks
__________________
:D :eek: :cool: Joe Thompson |
|
|
|
|
|
#16 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6
![]() |
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. |
|
|
|
|
|
#17 |
|
Programming Guru
![]() |
i tend to code on linux mainly i try to avod windows programming, just bugs me.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|