Class and struct in c++? when to use what?
Posted on 2014-01-21
I come from C then to C++. I have not touched C++ for a long time. Now when I try to review and get back to C++. It seems to me that struct with method are used quite frequent in c++. I remember when I first use C++, we only create a struct for storing complex data. But now it is different. Can someone kindly explain, when you would use struct but not class. I am trying to oriented myself back to C++ again. Thanks