I need to display the elements of the vector whose container type is struct\*. The elements of the vector point to a structure. Here is the following code of the structure:

```
struct cheader  //header of a linked list
{
  int id;
  int totald;
  class c* next = NULL;

  cheader(int x, int y)
  {
    id = x;
    totald = y;
  }
};
typedef struct cheader ch;

vector<ch*>present;

```

The vector present contains the pointers to this structure. Pointers to this structure are added in some other functions.
Now, I want to write a function to display the contents of the structure of the vector. 
Please suggest how to do that.