From: LLeweLLyn Reese <llewelly@lifesupport.shutdown.com>
To: Karthik Narayanan <rkarthik@cs.ucf.edu>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Help Needed
Date: Tue, 18 Mar 2003 01:51:00 -0000 [thread overview]
Message-ID: <x3y93dxxg8.fsf@lifesupport.shutdown.com> (raw)
In-Reply-To: <1048367240.1224.51.camel@x1-6-00-e0-18-67-55-94>
Karthik Narayanan <rkarthik@cs.ucf.edu> writes:
> Hi,
> Here is the attachment of the file that i created according to you
> instructions.
Thank you - but you didn't post the error messages.
[snip]
> On Sun, 2003-03-16 at 16:29, LLeweLLyn Reese wrote:
> > "R.Karthik Narayanan" <rkarthik@cs.ucf.edu> writes:
> >
> > > Hi,
> > > I am R.Karthik Narayanan, I am student at UCF. I have been trying to do
> > > programming in lunix using GCC. I find that my C programs work without any
> > > errors. But the problems seems to happend when i do GCC for C++ programs. It
> > > fails to find the file iostream.h.
> >
> > iostream.h is not part of ISO C++. The name was changed to <iostream>
> > (no suffix) during the standarization process which was completed
> > in 1998. (Although the iostream.h => iostream change was final
> > long before most of the other changes.)
> >
> > Since you don't know about <iostream>, I'm going to assume you don't
> > know about the std namespace. During the standarization process,
> > all standard C++ library names, including cout, endl, string, etc,
> > were moved into the std namespace. Here is an example:
> >
> > #include<iostream>
> > #include<ostream>
> >
> > using std::cout;
> > using std::endl;
> >
> > int main()
> > {
> > cout << "Hello world" << endl;
> > }
> >
> > > But, there is no error nad the program
> > > compiles.
> >
> > I think there is some confusion. If iostream is required, but not
> > found, the program will not compile. You must copy and paste the
> > exact error messages you get, and the code that reproduces them
> > (or a simplified version thereof). If you don't do that, people
> > can only guess at your problem, and are less able to help you.
> >
> > > But when i try to execute it using ./name of compiled file, there is
> > > no reponse, the program doesn't run. Can u please guide me as to how solve this
> > > problem.
> > [snip]
>
>
> #include<iostream>
> #include<ostream>
> using std::cout;
> int main()
> {
> cout<<"HelloWorld!";
cout is a buffered stream. This means it saves the output in a buffer,
until a long block of optimal size is obtained. The buffer isn't
written to output until it is full, or gets flushed. I don't
believe the standard requires the buffer to flushed when the
program exits. So if you do not use << flush, or << endl here, you
may see no output.
> return 0;
> }
next prev parent reply other threads:[~2003-03-18 1:45 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-16 21:32 R.Karthik Narayanan
2003-03-17 3:02 ` LLeweLLyn Reese
2003-03-18 0:25 ` Karthik Narayanan
[not found] ` <1048367240.1224.51.camel@x1-6-00-e0-18-67-55-94>
2003-03-18 1:51 ` LLeweLLyn Reese [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-07-27 10:17 help needed anandulle
2009-07-27 18:10 ` Andi Hellmund
2006-03-07 2:03 Help needed wenghwee
2005-08-25 23:40 RALPH OLD JR
2005-08-26 5:20 ` Arturas Moskvinas
[not found] <20040830122911.24797.qmail@webmail17.rediffmail.com>
2004-08-30 16:09 ` Help Needed Eljay Love-Jensen
2004-06-08 16:22 help needed lrtaylor
2004-06-09 9:25 ` Claudio Bley
2004-06-06 2:55 Naga Raju Thogiti
2004-06-08 10:17 ` Claudio Bley
2004-06-08 14:22 ` Claudio Bley
2004-05-29 0:41 xuyi
2004-05-29 19:03 ` Sumith Makam
2004-04-28 5:19 Help Needed Prashant S Kulkarni
2004-04-28 17:51 ` David Edelsohn
2003-11-20 12:46 help needed Jomy Abraham
2003-03-17 7:51 Help Needed Dockeen
2001-10-13 0:36 help needed ram
2001-10-13 1:41 ` Florian Weimer
2000-09-26 6:30 Kazu Hirata
2000-09-26 4:44 BRAHMAIAH VALLABHANENI
2000-09-26 21:49 ` Kiran Kumar K
2000-09-13 3:54 brahmaiah vallabhaneni
2000-04-09 21:24 Help needed Mahadev Cholachgudda
2000-04-07 23:07 Mahadev Cholachgudda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x3y93dxxg8.fsf@lifesupport.shutdown.com \
--to=llewelly@lifesupport.shutdown.com \
--cc=gcc-help@gcc.gnu.org \
--cc=rkarthik@cs.ucf.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).