delorie.com/archives/browse.cgi | search |
Date: | Mon, 30 Jun 1997 15:27:23 -0400 (EDT) |
From: | Timothy Robb <trobb AT neutrino DOT phys DOT laurentian DOT ca> |
To: | djgpp AT delorie DOT com |
Subject: | operator[] question |
Message-ID: | <Pine.SGI.3.91.970630152536.6878A-100000@neutrino.phys.laurentian.ca> |
MIME-Version: | 1.0 |
I want to create a class which I call matrix and want to access it like an array, I know how to implement as single array. ie matrix a(5); a[3] = 3;... But how do I do this matrix a(5,5); a[3][0] = 3; ... Thanks in advance, Timothy Robb
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |