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
Post a Comment