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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -