Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) composite data type

 

A composite data type is a data type which is constructed by stashing together multiple other data types.

 

#include <string>
#include <vector>

struct CompositeDataType
{
  bool m_b;
  double m_d;
  int m_i;
  std::string m_s;
  std::vector<std::string> m_v;
};

 

 

 

 

 

Composite data type code snippets

 

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml