www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/07/19:13:32

Message-ID: <37FCEB18.CE7F0A9@arcticmail.com>
From: N J Chackowsky <nick AT arcticmail DOT com>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: vector of vectors
Lines: 47
Date: Thu, 07 Oct 1999 18:48:57 GMT
NNTP-Posting-Host: 206.45.76.121
X-Trace: typhoon.mbnet.mb.ca 939322137 206.45.76.121 (Thu, 07 Oct 1999 13:48:57 CDT)
NNTP-Posting-Date: Thu, 07 Oct 1999 13:48:57 CDT
Organization: MBnet Networking Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.
--------------5C1B8690B98DF1A638DEA418
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
A while back, someone asked about simulating a 2-d array using vectors,
and I *thought* it was a simple problem. But then I tried it.
<p>Original code:
<br>&nbsp;&nbsp;&nbsp; int a[3][3];
<p>STL code:
<p>&nbsp;&nbsp;&nbsp; vector&lt;vector&lt;int> > a;
<p>But how do you ensure that a has three rows and columns allocated, such
that you can fearlessly execute
<p>&nbsp;&nbsp;&nbsp; a[2][2] = -1;
<p>for example? I'm reading Stroustrup 3rd ed. and am coming up blank,
but then, whole sections of this book are still a bit mysterious to me.
<p>Nick.
<br>&nbsp;</html>

--------------5C1B8690B98DF1A638DEA418
Content-Type: text/x-vcard; charset=us-ascii;
 name="nick.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for N J Chackowsky
Content-Disposition: attachment;
 filename="nick.vcf"

begin:vcard 
n:Chackowsky;Nick
tel;cell:204 729 6011
tel;fax:204 729 0365
tel;home:204 728 8184
tel;work:204 729 0363
x-mozilla-html:TRUE
url:http://www.brandonsd.mb.ca/massey
org:Vincent Massey High School;Business Education / Technology
adr:;;715 McDiarmid Drive;Brandon;Manitoba;R7B 2H7;Canada
version:2.1
email;internet:nick AT arcticmail DOT com
title:Teacher
fn:Nick J Chackowsky
end:vcard

--------------5C1B8690B98DF1A638DEA418--

- Raw text -


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