d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > 1000+ Fg For C++ Help
Prev12
Add Reply New Topic New Poll
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Apr 26 2014 08:32am
Quote (Minkomonster @ Apr 26 2014 01:46am)
Eh, correct me if I am wrong but the only difference between struct and class is all struct members are implicitly public, while class are private. And the assignment specifically asks the student to delete the dynamic array. Destructors are C++ only, right?


hm for some reason i thought classes lived on the heap as a reference type but structs lived on the stack as a value type. or is that just a C# thing?

/edit: i vaguely recall that in C++ you can choose what goes on the stack vs heap? so then it would just be a C# thing.

This post was edited by carteblanche on Apr 26 2014 08:33am
Go Back To Programming & Development Topic List
Prev12
Add Reply New Topic New Poll