title: Should I use structs in C++?
body: <p>The difference between struct and class is small in C++, basically only that struct members are per default public and class members are per default private.</p>
  
  <p>However, I still use structs whenever I need pure data structures, for instance:</p>
  
  <pre><code>struct Rectangle {
      int width;
      int height;
  };
  </code></pre>
  
  <p>I find that very convenient to work with:</p>
  
  <pre><code>Rectangle r;
  r.width = 20;
  r.height = 10;
  </code></pre>
  
  <p>However, data structures are from procedural programming, and I'm doing object oriented programming. Is it a bad idea to introduce this concept into OO?</p>