- #36
- 5,657
- 230
Sorry I did not see your post till now.Your attempt to call cout is not inside any function definition. This is not allowed. Did you mean to do it inside the Dclass constructor? If so, you have to define a Dclass constructor!
Thanks