MS Research PhD Research Curriculum Vitae
On-line Stores Cycling Medicine & Health LaTeX OOP & C++ Sony PCM-R500 DAT |
![]() |
Next: struct NEUT Up: Data structures Previous: Data structures   Contents   Index Simple data structuresThe simplest data structures we use are vectors and matrices. A vector is a pointer (ie an address) which points to the first element of the vector. The ith element is addressed using [i] after the variable name of the vector. The memory layout of a vector is illustrated in Figure 3.3.A matrix is a double pointer, ie a pointer which points to an array of pointers whose elements points to an array of matrix elements. The (i,j)th element of the matrix is addressed using [i][j] after the variable name to the matrix. The memory layout of a matrix is depicted in Figure 3.4.
Revision 2.0, Copyright © 1999-2004 Jakob Christensen http://www.JakobCHR.com E-Mail: webmaster@JakobCHR.com
|