Can can any body tell explain me when to go for structures and when to go for classes in c++.
Since both supports access spcifies,member fnctions and inheritance.
That first comment, ironically by someone who works for Google, really shows how defensive they are over their style guide. As for the question, I'd honestly just use structures for things that are strictly variable holders that may or may not overload functions, though that's just for my own mental ease. I mean, it's easier for me to differentiate classes that hold several variables and classes with several functions and variables if I split the two. Functionality is the same, but it's less thinking while coding over things that are unnecessary to worry about.