struct - Question regarding structures in C++ -


can structs have same name class?

am allowed pass around structs functions?

structs light-weight class? without functions. it's container holds vars. i'm wondering if made function, can pass in struct passing in other object?

in c++, struct , class identical. difference members of struct public default, , members of class private default.

you can use them same way use classes. need unique names (within same namespace), can't have struct use same name class.


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -