• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Structures

Before we move on to the final makeover exercise, let’s have a quick introduction to structures. Structures are another complex data construct very similar to an array. As a matter of fact, they are sometimes known as associative arrays.

Structures are very similar in organization and use to arrays, but instead of containing numerical references to element locations, they contain name/value pairs such as FirstName=Emma. The code in Listing 10.7 shows how we could retrieve all details for a particular employee and store them in a single structure variable.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint