\section{Person\-Record\-V1 Struct Reference}
\label{structPersonRecordV1}\index{PersonRecordV1@{PersonRecordV1}}
{\tt \#include $<$person-record.h$>$}

\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
char $\ast$ {\bf name}
\item 
int {\bf id}
\item 
char $\ast$ {\bf address}
\item 
int {\bf age}
\end{CompactItemize}


\subsection{Detailed Description}
Person\-Record Version 1 has name, id, address, and age fields. The name and address are char$\ast$, the id and age int.

Consider the following code segment: \small\begin{alltt}
     PersonRecordV1 prv1;
     prv1.name = "Jane Doe";
     prv1.id = 123456789;
     prv1.address = "1 Main St."
     prv1.age = 25;
                                                                      \end{alltt}\normalsize 
 Here is a picture of the memory layout of variable prv1:



Consider now the following code segment, which dynamically allocates a value of type Person\-Record\-V1: \small\begin{alltt}
     PersonRecordV1 prv1p = new(PersonRecordV1);
     prv1p-$>$name = "Jane Doe";
     prv1p-$>$id = 123456789;
     prv1p-$>$address = "1 Main St."
     prv1p-$>$age = 25;
                                                                      \end{alltt}\normalsize 
 Here is a picture of the memory layout of variable prv1p:

 



\subsection{Member Data Documentation}
\index{PersonRecordV1@{Person\-Record\-V1}!address@{address}}
\index{address@{address}!PersonRecordV1@{Person\-Record\-V1}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf Person\-Record\-V1::address}}\label{structPersonRecordV1_o2}


address is a variable-length string \index{PersonRecordV1@{Person\-Record\-V1}!age@{age}}
\index{age@{age}!PersonRecordV1@{Person\-Record\-V1}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf Person\-Record\-V1::age}}\label{structPersonRecordV1_o3}


age is an int \index{PersonRecordV1@{Person\-Record\-V1}!id@{id}}
\index{id@{id}!PersonRecordV1@{Person\-Record\-V1}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf Person\-Record\-V1::id}}\label{structPersonRecordV1_o1}


id is an int \index{PersonRecordV1@{Person\-Record\-V1}!name@{name}}
\index{name@{name}!PersonRecordV1@{Person\-Record\-V1}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf Person\-Record\-V1::name}}\label{structPersonRecordV1_o0}


name is a variable-length string 

The documentation for this struct was generated from the following file:\begin{CompactItemize}
\item 
{\bf person-record.h}\end{CompactItemize}
