delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/29/19:13:09

Message-ID: <390B75BB.621F846A@gtcom.net>
From: Krogg <krogg DOT no DOT to DOT spam AT gtcom DOT net>
X-Mailer: Mozilla 4.61 [en] (Win95; U)
X-Accept-Language: en,en-US,en-GB,ja,af
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Array swapping.
Lines: 28
Date: Sat, 29 Apr 2000 19:52:27 -0400
NNTP-Posting-Host: 12.16.179.55
X-Trace: eagle.america.net 957052537 12.16.179.55 (Sat, 29 Apr 2000 19:55:37 EDT)
NNTP-Posting-Date: Sat, 29 Apr 2000 19:55:37 EDT
Organization: 24hoursupport.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I got 2 arrays of same type/size.

float abc[50][50];
float cba[50][50];

how can i "swap" them?

so that abc[x][y] will now point to cba[x][y] and
vice versa...

I dont care if it is portable,just so long as
it works and can be done over and over.....


Thanks.

-- 


|"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""|
|      `.`/""""""\,','            my sig is too big,      |
|SEE HIS (  /   \ \' SEE HIS      but its really cool.    |
| FACE    \/<> <>\/   SMILE                               |
|         /   W   \          Visit my ascii art site:     |
|       ,'\_|||||_/`.  http://www.gtcom.net/~krogg/ascii/ |
|     ,','   |||   `.`.     krogg DOT no DOT to DOT spam AT gtcom DOT net    |
|____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|

- Raw text -


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