public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Joshua Nye" <josh@boxcarmedia.com>
To: <gcc-help@gcc.gnu.org>
Subject: Re: rewind a file
Date: Tue, 01 Oct 2002 11:04:00 -0000	[thread overview]
Message-ID: <000b01c26974$ff6f6b10$c800a8c0@pdc1.boxcarmedia.com> (raw)
In-Reply-To: <200210011958.12731.sebastian-huber@web.de>

This program compiles and runs fine with g++ 3.2.

#include <iostream>
using namespace std;
int main() {
    cout << ios::beg;
    return 0;
}

Maybe you need the 'using namespace std;' in there?

--josh

----- Original Message ----- 
From: "Sebastian Huber" <sebastian-huber@web.de>
To: <gcc-help@gcc.gnu.org>
Sent: Tuesday, October 01, 2002 10:58 PM
Subject: Re: rewind a file


Hello,
I'm not absolutely sure about that, but I guess that 'ios' is not standard 
conform. You should try 'ios_base'.

On Tuesday 01 October 2002 09:52, Philippe Despres wrote:
> Hello,
>
> I used to rewind a ifstream file with
>
> file.seekg(0,ios::beg);
> file.clear();
>
> to read it a second time. It was under gcc 2.9x. Now I upgrade to
> mandrake 9.0, which ships gcc 3.2 and it is not working anymore... any
> hint?
>
> Thanks
>
> Philippe


      reply	other threads:[~2002-10-01 18:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01  9:48 Philippe Despres
2002-10-01 10:58 ` Sebastian Huber
2002-10-01 11:04   ` Joshua Nye [this message]

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='000b01c26974$ff6f6b10$c800a8c0@pdc1.boxcarmedia.com' \
    --to=josh@boxcarmedia.com \
    --cc=gcc-help@gcc.gnu.org \
    /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).