From 6c2234d0f83b127f6d0926d0ba5426f2b7857890 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 19 Sep 2023 21:34:20 -0400 Subject: [PATCH] programs to code snippets --- labs/04_memory_debugging/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/labs/04_memory_debugging/README.md b/labs/04_memory_debugging/README.md index 1f067fc..1b17483 100644 --- a/labs/04_memory_debugging/README.md +++ b/labs/04_memory_debugging/README.md @@ -7,13 +7,13 @@ - Introduce yourself to your teammate. Share to your teammate something about yourself (e.g. hobbies, sports, favorite music, etc). Learn something new about your teammate (even if you already know the teammate). -- Following the conventions used in Data Structures lecture for memory diagramming, draw a picture of the stack and the heap that result from executing the statements below. Use a ‘?’ to represent uninitialized values. +- Our TA/mentor will pick a code snippet for each student, from the following 5 code snippets. Following the conventions used in Data Structures lecture for memory diagramming, draw a picture of the stack and the heap that result from executing the code snippet. Use a ‘?’ to represent uninitialized values. -[Program 1](fruits.cpp) -[Program 2](grains.cpp) -[Program 3](desserts.cpp) -[Program 4](veggies.cpp) -[Program 5](protein.cpp) +[Code Snippet 1](fruits.cpp) +[Code Snippet 2](grains.cpp) +[Code Snippet 3](desserts.cpp) +[Code Snippet 4](veggies.cpp) +[Code Snippet 5](protein.cpp) Show your diagram to your teammate, and ask the teammate to reverse engineer code for your diagram; at the same time, you reverse engineer code for your teammate's diagram.