delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/23/16:05:26

From: Sascha Zapf <nc-zapfsa AT netcologne DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: STL question
Date: Thu, 23 Sep 1999 20:39:25 +0100
Lines: 22
Distribution: world
Message-ID: <37EA81ED.E182ED0A@netcologne.de>
References: <37e869a8 AT news1 DOT prserv DOT net>
NNTP-Posting-Host: dial-lind-99.netcologne.de
Mime-Version: 1.0
X-Trace: news.netcologne.de 938112050 2673 195.14.250.99 (23 Sep 1999 18:40:50 GMT)
X-Complaints-To: usenet AT news DOT netcologne DOT de
NNTP-Posting-Date: 23 Sep 1999 18:40:50 GMT
X-Mailer: Mozilla 4.6 [de]C-CCK-MCD QXW0321j (Win95; I)
X-Accept-Language: de-DE,en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


David Grant schrieb:

> Is there an STL class I can use to represent a 2D array?  I need to use an
> STL function because I need to make deep copies easily and use the
> assignment operator and stuff like that, but I don't want to make my own new
> class.  I basically want to use a vector STL class but it has to be 2D.  I
> need to store double type variables inside.  I'm just making a simple 1-file
> program, no functions, just a couple loops, and some numerical computations
> inside.
>
> --
> David Grant                     dgrant3 AT ibm DOT net
> Engineering Physics         http://www.ubc.ca
> University of British Columbia

Just an idea...Why didn't use "std::vector< std::vector< int > >"

Sascha


- Raw text -


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