I had a problem with my turbo C++ which would close itself after every execution.(Not the getch problem)

After somehow solving this fault and the full screen problem, I tried out a program to check if my C++ is fine. Everything is fine except for the Output screen which seems out of bounds. I tried out the hello world program and the "He" of hello was not seen.

(I am unable to take the screenshot also.)
How to solve this problem ??

I had a problem with my turbo C++ which would close itself after every execution.(Not the getch problem)

After somehow solving this fault and the full screen problem, I tried out a program to check if my C++ is fine. Everything is fine except for the Output screen which seems out of bounds. I tried out the hello world program and the "He" of hello was not seen.

(I am unable to take the screenshot also.)
How to solve this problem ??

Hello,

may I ask which OS system your are running? Vista?

put something, such as getchar(), at the end of main() to prevent the window from closing.

Maybe re-read the question :) I think he said he has already done that part.

I have a tried drawing the problem out.
The output goes out of screen. And it is not my monitor problem. Everything else is right. It is only the output which is out of bounds.

I don't know what's causing it to go out of bounds like that, but I really doubt it's something to do with your code.

I AM SURE THE CODE DOESN't matter here....
if you want here it is

#include<iostream.h>

void main()
{
cout<<"Hello";
}

With getch();

I AM SURE THE CODE DOESN't matter here....
if you want here it is

#include<iostream.h>

void main()
{
cout<<"Hello";
}

With getch();

I know.. that's what I said. By the way, don't use void main, use int main, and use code-tags when posting.

Edited 7 Years Ago by William Hemsworth: n/a

I had a same problem and I have to open o/p window every time right after the execution and input part. Note:o/p screen gone only after the input parts are over.

This article has been dead for over six months. Start a new discussion instead.