TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: THOMAS MAEDER
from: ALBERTO MONTEIRO
date: 1997-12-18 19:13:00
subject: What`s wrong with this?

AM> Ok. But as you must have imagined, I wish to generalize it to a
AM> n-dimensional Vector. Then I guess I can't initialize them this way
TM>No,  I  didn't  imagine  that (although I admit that I might have...).
TM>Yes, you are right. But then I'd suggest that  you  use  the  standard
TM>vector template.
What is the standard vector template? I know the MFC CArray class, and
it is tempting to create a derived Vector class [and also a Matrix
class, btw] adding the overload of double * Vector, Vector + (or -)
Vector, and Vector * Vector (scalar product). In fact, I have already
done those operations, for a class Vector with variable members int n
(dimension) and double * v (the array of elements).
Alberto Monteiro
---
 þ SLMR 2.1a þ But violent use brings violent plans (Metallica)
--- FMail/386 1.02
---------------
* Origin: CentroIn! +55-21-205-0281, 41 lines, 24h, RJ/Brazil (4:802/21)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.