0

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 ??

7
Contributors
14
Replies
28
Views
7 Years
Discussion Span
Last Post by Saptarshi_1
Featured Replies
  • [QUOTE=Ancient Dragon;1024481]put something, such as getchar(), at the end of main() to prevent the window from closing.[/QUOTE]Maybe re-read the question :) I think he said he has already done that part. Read More

0

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?

1

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.

0

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.

0

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();

0

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 by William Hemsworth: n/a

0

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.

0

hie ,wen i compile the program it runs and accepts the inputs but its not displaying the output

0

Dear friends,

I have been trying to run a c++ program on finding odd and even numbers. It displyas no errors and warnings and it runs. But after entering the number, as soon as i press enter, it does not display anything but comes back to the proram part. Please help.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.