Must use the c-> syntax because we get a pointer from the queue. The object is still alive because it was created in the heap. One should be careful about transient objects that are stored by reference in data structures.
1. Class No.18 Data Structures http://ecomputernotes.com
2.
3.
4.
5.
6. Memory Organization Code Static data Stack Heap Process 1 (browser) Process 3 (word) Process 4 (ourtest.exe) Windows OS Process 2 (dev-c++) http://ecomputernotes.com
7.
8.
9.
10.
11.
12.
Hinweis der Redaktion
End of lecture 2 The second goal is the “nuts and bolts” of the course. The third goal prepares a student for the future.
End of lecture 2 The second goal is the “nuts and bolts” of the course. The third goal prepares a student for the future.