Newsgroups: comp.os.msdos.djgpp From: manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann) Subject: Re: STL question References: <37e869a8 AT news1 DOT prserv DOT net> X-Newsreader: News Xpress 2.01 Date: Wed, 22 Sep 1999 08:00:54 GMT NNTP-Posting-Host: dhcp33-114.uni-bielefeld.de Message-ID: <37e88cc1.0@news.uni-bielefeld.de> X-Trace: 22 Sep 1999 10:01:05 +0200, dhcp33-114.uni-bielefeld.de Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <37e869a8 AT news1 DOT prserv DOT net>, "David Grant" wrote: >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. > Just use a vector of vectors of double: vector > myvec; If you put something in there you can get it with myvec [x][y]. -- Manni