cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/16/16:40:24

From: Paul Richards <Paul AT dunvegan1 DOT demon DOT co DOT uk>
Newsgroups: comp.os.ms-windows.programmer.win32,comp.os.msdos.djgpp
Subject: Copying whole arrays
Date: Wed, 16 Jun 1999 21:13:09 +0100
Organization: Paul's house
Message-ID: <eJm9zGAVVAa3EwWP@dunvegan1.demon.co.uk>
NNTP-Posting-Host: dunvegan1.demon.co.uk
X-NNTP-Posting-Host: dunvegan1.demon.co.uk:193.237.111.243
X-Trace: news.demon.co.uk 929564076 nnrp-04:23431 NO-IDENT dunvegan1.demon.co.uk:193.237.111.243
X-Complaints-To: abuse AT demon DOT net
MIME-Version: 1.0
X-Newsreader: Turnpike (32) Version 4.01 <5Y9PmoTxnkdx6tAFcQ+gcCx86I>
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
I'm moving over from DJGPP to MS VC++ 6 and I came across a small
problem.  DJGPP accepts this:

int a[20];
int b[20];
//...Do stuff...
a=b;

But MSVC coughs up on the last line with this:
"error C2106: '=' : left operand must be l-value"

Any ideas on how to fix it?  For the moment I'm just replacing "a=b"
with a small loop to do the job.
-- 
Paul Richards (AKA Pauldoo)
mailto:paul AT dunvegan1 DOT demon DOT co DOT uk
http://www.dunvegan1.demon.co.uk/paul/info.html

- Raw text -


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