• Forum
  • Lounge
  • Tutorial's struct and class needs tweaki

Tutorial's struct and class needs tweaking

From Classes(I) http://cplusplus.com/doc/tutorial/classes/

All is very similar to the declaration on data structures, except that we can now include also functions and members, but also this new thing called access specifier.

This is talking about a C struct.
Going to Data Structures: http://cplusplus.com/doc/tutorial/structures/

No mention of functions or access specifiers. There should at least be a reference there somewhere saying, "Hey, these are practically the same as a class in C++, more on that in the Classes tutorial", and then in Classes have it explain that structs are public by default classes.

I should have read more. This is addressed at the very end of Classes(I). Disregard -_-
Last edited on
Topic archived. No new replies allowed.