delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/30/18:26:38

Message-ID: <3894BC87.8ED55889@geocities.com>
From: Sahab Yazdani <beyonder69 AT geocities DOT com>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: how do I use 2D variables
References: <8722e8$res$1 AT zingo DOT tninet DOT se>
Lines: 37
Date: Sun, 30 Jan 2000 17:34:47 -0500
NNTP-Posting-Host: 209.103.52.163
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: newscontent-01.sprint.ca 949271994 209.103.52.163 (Sun, 30 Jan 2000 17:39:54 EST)
NNTP-Posting-Date: Sun, 30 Jan 2000 17:39:54 EST
Organization: Sprint Canada Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

if i understand correctly:

// for 2d
struct twoD {
	int x;
	int y;
};

struct threeD {
	int x;
	int y;
	int z;
};

void main() {
	twoD a;
	threeD b;

	a.x = 10;
	b.z = 15;
}

etc, etc, etc;

"Börje Granberg" wrote:
> 
> How do I define and use 2D,3D etc. 'var(x,y)' I don't have a clue
> 
> /Bege

-- 
***********************************************************
* Sahab Yazdani * "We are all who we are, no more and no  *
* Thornhill S.S * less" - al'Lan Mandragoran              *
***********************************************************
* http://pheonixware.8m.com/                              *
***********************************************************

- Raw text -


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