How to use struct at c++?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to use struct at c++??

18th Nov 2017, 7:40 PM
Dede
Dede - avatar
2 Answers
+ 2
struct thing { //properties and methods };
18th Nov 2017, 8:58 PM
Zeke Williams
Zeke Williams - avatar
+ 1
Its the same as a class but the default visibility is public.
18th Nov 2017, 8:40 PM
Olaf Bernstein
Olaf Bernstein - avatar