V
V
Vadim kyklaed2018-02-28 17:17:50
C++ / C#
Vadim kyklaed, 2018-02-28 17:17:50

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

2 answer(s)
B
bbkmzzzz, 2018-02-28
@kyklaed

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.

D
Denis Zagaevsky, 2018-02-28
@zagayevskiy

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 question

Ask a Question

731 491 924 answers to any question