slides-9

slides-9 - Data Structures - CSCI 102 Housekeeping (Lecture...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Data Structures - CSCI 102 Copyright © William C. Cheng Housekeeping (Lecture 10 - 2/10/2011) Lab #5 (Operator Overloading) due next week during your lab session HW2 (Extending the Video Game Database) due on 2/14 No design doc is required for this lab HW3 (Conway’s Game of Life) posted Due date is 3/7/2011 New lab grading policy: You can no longer get your lab graded during a lab session during the week after Main idea: you must finish your current lab and get it graded before the start time of your next lab But there are restrictions. ..
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Data Structures - CSCI 102 Copyright © William C. Cheng Housekeeping (Lecture 10 - 2/10/2011) New lab grading policy (cont. ..) If you cannot finish your lab or get it graded during the current week You can demo it to one of the TAs who run your lab during his/her regular office hour either in the current week or the following week but before your next lab You should go to that TA’s office hour near the beginning to ensure that your lab gets graded Lab grading gets low priority during office hours If your lab is not graded by the end of the office hour, you may not ask the TA to extend the office hour You may not make appointment to get your lab graded Bottomline, you should strive to have your labs finished and graded by the end of your lab session
Background image of page 2
3 Data Structures - CSCI 102 Copyright © William C. Cheng Housekeeping (Lecture 10 - 2/10/2011) New lab grading policy (cont. ..) If you are not available occasionally , you can go to a different TA’s office hour to get your lab graded for up to two times Questions? If you have legitimate reasons why you are not available during both of your lab TA’s office hours every week , contact me to make arrangements to assign a different TA to you for grading your labs, in case you need it The new lab grading policy will go into effect starting with Lab 5 For Lab 4, you can still get it graded at the beginning of your lab next week
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Data Structures - CSCI 102 Copyright © William C. Cheng Under the Cover ... int main() { ... Triangle t(20,40,5,10); ... Triangle *tptr=&t; Shape *sptr=tptr; sptr->print(); } Let’s focus on the end of inherit_main.cpp : Put everything together and compile: g++ -g -Wall inherit_main.cpp point.cpp
Background image of page 4
Run the debugger, set a breakpoint in main() , do a few next commands until you get to the last line 5 Data Structures - CSCI 102 Copyright © William C. Cheng Under the Cover gdb a.out (gdb) break main (gdb) run ... (gdb) next (gdb) next (gdb) . .. (gdb) next 30 sptr->print();
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Where is sptr->center stored? 6 Data Structures - CSCI 102 Copyright © William C. Cheng Under the Cover $3 = (Point *) 0xbff5a2e8 What are the values of tptr and sptr ? (gdb) print tptr
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 38

slides-9 - Data Structures - CSCI 102 Housekeeping (Lecture...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online