PersonRecordV2 Struct Reference

#include <person-record.h>

List of all members.

Public Attributes

char name [20]
int id
char address [25]
int age


Detailed Description

PersonRecord Version 2 has the same fields as a Person Record Version 1, except the name and address fields are fixed character arrays instead of char*. These fields are 30 and 50 chars, respectively.

Consider the following code segment:

     PersonRecordV2 prv2;
     strcpy(prv2.name, "Jane Doe");
     prv2.id = 123456789;
     strcpy(prv2.address, "1 Main St.");
     prv2.age = 25;
                                                                      
Here is a picture of the memory layout of variable prv1:

prv2.jpg


Member Data Documentation

char PersonRecordV2::address[25]
 

id is an int

int PersonRecordV2::age
 

address is a string of max 25 chars

char PersonRecordV2::name[20]
 

name is a string of max 20 chars


The documentation for this struct was generated from the following file:
Generated on Fri Apr 20 09:49:47 2007 by  doxygen 1.4.6