This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Where is the output


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]