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

c# - IMAP GMAIL getting folder list problem -

PHP proxy to get XML: problem with URL arguments -