Home Segments Index Top Previous Next

510: Mainline

You can keep a grip on the new character array using a member variable declared in the trade structure. That member variable must be a character pointer:

struct trade { 
  double price; 
  int number; 
  char* description; 
}; 

Note that the old structure variable that held an integer industry code has been dropped.