delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/25/11:02:51

From: "Christopher Roche" <Rochey AT CompuServe DOT Com>
Subject: Re: double trouble
References: <35DEDC2F DOT BB81D366 AT virgin DOT net>
Organization: Roxoft Interactive
Message-ID: <01bdd030$99c257a0$0818d3d4@billy>
Newsgroups: comp.os.msdos.djgpp
Date: Tue, 25 Aug 1998 10:19:24 -0400
Lines: 29
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Your missing the semi-colons (;) from your first 2 statements.

"He was a self made man who owed his lack of success to nobody"
Christopher Roche
Newcastle, The United Kingdom of Great Britain and Northern Ireland.
Rochey AT CompuServe DOT Com

Stephen Snape <stephen DOT snape AT virgin DOT net> wrote in article
<35DEDC2F DOT BB81D366 AT virgin DOT net>...
> hi,
> 
> Could someone tell me whats wrong with this,
> 
> double var	<----------
> int num	<----------
> 
> void check_bit(void)
> {
>     return var<<num;
> }
> 
> DJGPP won't let this happen. I can't access a bit in a double, why? It
> keeps saying invalid operand to binary, and it's driving me mad.
> 
> Thanks in advance, reply in e mail if you want,
> 
> Steve.
> 
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019