whar are structures in cpp?what is there basic need in cpp programing? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

whar are structures in cpp?what is there basic need in cpp programing?

i need to learn there basic use

6th Mar 2017, 2:40 PM
Kantakishor Sharma
Kantakishor Sharma - avatar
1 Answer
0
total public classes. they are used to store information. so other languages have multi-datatype arrays, c++ doesnt. so you make a structure with all of the different information that you want each object to have, then you can create an array of those objects. dont need manipulator functions because everything is public but you can make operator overloads for the struct to compare, input or output the objects. hope this helps
6th Mar 2017, 2:55 PM
Michael Szczepanski
Michael Szczepanski - avatar