954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem with Turbo C++ IDE 3.0

I have Turbo C++ IDE 3.0 the one that has blue working environment.
Problem that i face is that when i run any program it only shows the black screen for about 3 seconds without any output and then automatically closes.
I can't check the output because of this.
Please help.

himgar
Light Poster
38 posts since May 2008
Reputation Points: 6
Solved Threads: 3
 

add something to the end of the program that makes you enter a key, such as cin.get() -- btw the problem is your program, not the IDE.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

at the end of the code just write

getch();

then you can only exit the output after pressing ne character.

rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 

>at the end of the code just write
>getch();
And also include , not forgetting that the conio library functions are absolutely non-standard and your code won't work on many compilers.

>then you can only exit the output after pressing ne character.
Is it really that much work to type "any" instead of "ne"? If you're sloppy when communicating, most people will assume you're sloppy in everything else. You lose credibility even before your technical accuracy is examined.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

I thought about getch(), but he is using a c++ compiler so cin.get() is most appropriate -- and it's standard to boot!

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 
>at the end of the code just write >getch(); And also include , not forgetting that the conio library functions are absolutely non-standard and your code won't work on many compilers.

Well the problem clearly mentioned "Turbo C++ IDE 3.0 " thus in that environment header file very much exist. it would be convenient to use it.Is it really that much work to type "any" instead of "ne"? If you're sloppy when communicating, most people will assume you're sloppy in everything else. You lose credibility even before your technical accuracy is examined.

Well by writingne instead of any doesnt show any kind of sloppiness by any means . both the word sound the same so its easier to write thats it .

rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 
Well by writing ne instead of any doesnt show any kind of sloppiness by any means . both the word sound the same so its easier to write thats it .

We discourage the use of leek, or chatroom, speak here because there are a lot of members whose mother toung is not English. Consequently they may have no clue whatne means. Just because it may sound the same to you doesn't mean it sounds like that to everyone else. And "its easier to write" doesn't cut it either -- only one key stroke -- surly you can not be that lazy!!

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

>Well the problem clearly mentioned "Turbo C++ IDE 3.0 "
Indeed, and in that environment getch is a viable option, which is why I didn't flay you to the quick. However, it's important to understand portability issues even if you ultimately choose to ignore them.

>Well by writing ne instead of any doesnt show
>any kind of sloppiness by any means.
I disagree, which is why I mentioned it.

>both the word sound the same so its easier to write thats it.
Perhaps in your neighborhood, but not everyone was born in your area. How about all of the members who don't speak English as a native language? Many languages have a different sound for "ne", and you shouldn't be surprised if "ne" is actually a word in another language with completely different usage. One example is Japanese, where "ne" is both a particle used in the language and the sound is not "nee" (as you might say it), but "nay".

Further, do you really expect everyone to intuitively understand that "ne" is actually pronouced as the two letters 'n' and 'e' rather than phonetically as a word? Correct full sentence English is preferred because then non-native speakers have a chance in hell of understanding you.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 
Consequently they may have no clue what ne means.

You'reAD and I'm ne, everyone knows that :)

Nick Evan
Not a Llama
Moderator
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
 

ok SORRY i totally apologies for using ne instead of using any and in future stuff like this will never happen ,atleast not from my side.

rahul8590
Posting Whiz
351 posts since Mar 2009
Reputation Points: 92
Solved Threads: 20
 

IF UR PROG NEED SOME INPUT GIVE IT & PRESS ENTER AND USE "getch();"(REQUIRES "conio.h") AT THE END OF UR PROG.

amirun
Newbie Poster
3 posts since Jun 2009
Reputation Points: -2
Solved Threads: 0
 

>IF UR PROG NEED SOME INPUT GIVE IT & PRESS ENTER AND USE "getch();"
>(REQUIRES "conio.h") AT THE END OF UR PROG.
Thanks for giving your ancestral trick. I promise I won't tell anyone.

siddhant3s
Practically a Posting Shark
816 posts since Oct 2007
Reputation Points: 1,486
Solved Threads: 140
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You