+ 1

Struct can have classes inside of it

there is a question in c++ battle with the same header as my. True or false. False is checked as correct. But my code shows it's true or i misunderstood question? https://code.sololearn.com/cwS7v5fD1BOl/?ref=app

27th Jan 2018, 7:28 AM
Mathist
5 Answers
0
Yes you can have classes inside structs as you showed in your code, maybe you misunderstood the question
28th Jan 2018, 10:28 AM
Marco
Marco - avatar
0
The question:"Struct can have classes inside of it.". And two variants of answer: 1.true 2.false. How could it be false?
28th Jan 2018, 10:34 AM
Mathist
0
Report the question, there is a little button on the top right corner to report
28th Jan 2018, 10:54 AM
Marco
Marco - avatar
0
i've done it at least 10 times.
28th Jan 2018, 10:58 AM
Mathist
0
Wait for them to review the reports and delete the question
28th Jan 2018, 11:00 AM
Marco
Marco - avatar