Menu

Defining structures.

Robert
2007-10-28
2013-04-17
  • Robert

    Robert - 2007-10-28

    I come from a C background and still use structures for items that are too primitive to objectify.  One case is points and vertices for geometry work. They have properties, but they have no behavior of their own.

    I define them as structures, but CB seems to want to treat them as classes of objects, even though I checked the struct checkbox, it looks like it made it into a class.

    Any means of working around this?

     
    • Craig Gunhouse

      Craig Gunhouse - 2007-10-29

      In terms of C++, I have always thought of structures as class with public scope as it's default for members instead of private.  This means that there is little need for a work around.

      Gunner

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.