Compiler io problem!

J

jbruno4000

I'm using the Borland 5.5 Standard Edition compiler and recently started having
an io problem. When I Run my applications, after compiling and linking, there
is no output to the output window! it's as though the output is being
redirected elsewhere. I've tried removing and re-installing Borland 5.5 several
times but the problem persists. I've been using this Borland package for well
over a year with no problems and feel safe to rule out the Borland package as
the problem. Perhaps some setting on my system has changed, I'm using windows
98.

I contacted Borland about the problem and am still awaiting a reply. In the
meantime I'm hoping some of you Pros out there might have some ideas to help me
resolve the problem.

JB
 
T

Thomas Matthews

jbruno4000 said:
I'm using the Borland 5.5 Standard Edition compiler and recently started having
an io problem. When I Run my applications, after compiling and linking, there
is no output to the output window! it's as though the output is being
redirected elsewhere. I've tried removing and re-installing Borland 5.5 several
times but the problem persists. I've been using this Borland package for well
over a year with no problems and feel safe to rule out the Borland package as
the problem. Perhaps some setting on my system has changed, I'm using windows
98.

I contacted Borland about the problem and am still awaiting a reply. In the
meantime I'm hoping some of you Pros out there might have some ideas to help me
resolve the problem.

JB

The easy way for us to help you resolve your issue is for you to post
the smallest compilable program that demonstrates the issue.
Tell us the expected behavior and the actual behavior.

The problem is that I/O is quite vague. Are you using the correct
functions for outputting to a window? Are you writing to the correct
window? Is this a console window? Are you mixing "C" style streams
with C++ streams? Did your program execute the code to output to
the window? Was there any data to be output? Did the output function
return any error?

Many of the above questions could be resolved by posting, not
attaching, code. Just paste into the post, don't retype.

Reread your post and see if there is enough information in it for
you to figure out what is going on.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 
J

jbruno4000

to test the compiler I entered some simple code. i.e.

#include <iostream>

using namespace std;

int main()
{
cout << "Hello everybody!";

return 0;
}

Before the problem began this program would execute correctly by displaying the
message "Hello everybody" to the output screen.
 
P

Pete Becker

jbruno4000 said:
cout << "Hello everybody!";

It might not matter, but change that to:

cout << "Hello everybody!" << endl;

(You might need to #include <ostream> for that to compile)

Neither C nor C++ makes any promises about what happens when text output
isn't terminated by a newline. endl puts in a newline and will also
flush the output, which sometimes makes a difference.
 
L

Lovesearch1000

From your response I can tell I'm not comminicating the problem effectively.
This is probably not the best place to address this sort of problem, too many
unknowns. I think I'm just going to have to restore my system as much as I
dread it!

Thanks anyway!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top