Answer the question
In order to leave comments, you need to log in
What are structures really used for?
Good evening! What are structs really used for in C++?
Answer the question
In order to leave comments, you need to log in
For logical grouping of data in one entity, when the possibilities of classes are redundant, for example, the result of a query in the database.
A struct in C++ differs from a class only in visibility by default: a struct has it public, a class has it private. Everything else is the same.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question