Mail Archives: djgpp/1997/07/26/02:20:44
From: | nick AT tcp DOT co DOT uk (Nick Austin)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: compiler doesn't like ORing things
|
Date: | Fri, 25 Jul 1997 19:34:02 GMT
|
Organization: | 0%
|
Lines: | 23
|
Message-ID: | <5rav4k$7r9$1@zeus.tcp.net.uk>
|
References: | <01bc97bd$f03130e0$LocalHost AT damien>
|
NNTP-Posting-Host: | du-040.tcp.co.uk
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
"Richard Birch" <richardbirch AT dial DOT pipex DOT com> wrote:
> ifstream src(filename, ios::in | ios::bin);
>...
>But now the compiler complains:-
>...
> Error: parse error before character 0335
(This is almost becoming a Frequently Asked Question)
The clue here is "0335". This is a graphics character which
on some systems just happens to look like a vertical bar.
The key you want is the same as the DOS "pipe" character,
as in:
TYPE C:\WINDOWS\SYSTEM.INI | MORE
You'll find the key labelled as a broken vertical line
(two short vertical lines, one above the other).
Nick.
- Raw text -