This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Where is the output
- To: mose_n at yahoo dot com
- Subject: Re: Where is the output
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sun, 17 Oct 1999 02:45:16 +0200
- CC: bug-gcc at gnu dot org
- References: <19991015151359.6146.rocketmail@web1403.mail.yahoo.com>
> The "Project1.jpg" will show you what I meant when I
> mentioned 'run' in my first message. I attempted to
> use both of the indicated buttons to produce an
> output. Both buttons did something, but what it was I
> have no idea. I say they did something because I heard
> the musical tone I use to indicate a program opening.
I think you've got a program, but it just did not produce any
output. I know this sounds strange, and I think it should eventually
produce output, but there is thw things to notice:
a) you mix stdio (printf) and iostreams (cout). Please don't do
that. It is supposed to work, but difficult to implement; I don't
know whether it works on your environment.
b) you never complete the line you are starting. In the printf calls,
please put \n in the end of each string, just to see whether it
changes something. If you go for iostreams, you can use cout<<endl.
Otherwise, the system may buffer the output until the line is
complete. It should still output the incomplete line before the
program terminates, but perhaps this does not work for some strange
reason.
Hope this helps,
Martin