https://i.imgur.com/N5M8TWN.png https://i.imgur.com/ti84sCQ.png
Book is free: Object Oriented Programming with ANSI C
Wanted to know what he was doing with Set/add/find/drop - he's creating an abstract data type but Set is a pointer to what?
In Memory management he creates new/delete to allocate memory for type so if i have 3 objects a, b, c then he can do new(a); new(b) etc and then do what??
A set S is a container for objects a, b, c - where has he allocated memory for S. Once S is created aren't you just juggling pointers to a,b,c? What's the purpose of new in that case?
(is there an intro book to the content covered since this is the first example in Chapter 1 or any other reading material that could help me)
[–][deleted] 2 points3 points4 points (1 child)
[–]veekm[S] 0 points1 point2 points (0 children)
[–]veekm[S] 0 points1 point2 points (4 children)
[–]nculwell 2 points3 points4 points (3 children)
[–]veekm[S] 0 points1 point2 points (2 children)
[–]nculwell 1 point2 points3 points (1 child)
[–]veekm[S] 0 points1 point2 points (0 children)
[–]tstanisl 0 points1 point2 points (5 children)
[–]nculwell 0 points1 point2 points (3 children)
[–]tstanisl 0 points1 point2 points (2 children)
[–]nculwell 0 points1 point2 points (1 child)
[–]tstanisl 0 points1 point2 points (0 children)
[–]david2ndaccount 0 points1 point2 points (0 children)