From 53549accd0136e95f6903009855e917e0bd17b25 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 11 Apr 2025 22:10:38 -0400 Subject: [PATCH] fixing the file paths --- hws/instagram_notifications/README.md | 2 +- lectures/25_inheritance/README.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hws/instagram_notifications/README.md b/hws/instagram_notifications/README.md index e7c05f9..215ac65 100644 --- a/hws/instagram_notifications/README.md +++ b/hws/instagram_notifications/README.md @@ -308,7 +308,7 @@ a1: If by Thursday night 10pm (which is the submission deadline), your program o You will receive an email asking you about which option you want to choose, or if you want to propose a different option. You will be asked to describe your optimization techniques, and you must have at least one technique which is unique - not mentioned by 5 (or more than 5) other students. -**Definition of Outperform:** The term outperform is defined as: Your program must either runs less amount of time than the instructor's code; or runs the same amount of time but consumes less memory than the instructor's code. Same run time, same memory usage, but submitty shows you at a higher position will not counted as outperforming. +**Definition of Outperform:** The term outperform is defined as: Your program must either runs less amount of time than the instructor's code; or runs the same amount of time but consumes less memory than the instructor's code. Same run time, same memory usage, but submitty shows you at a higher position will not be counted as outperforming. q2: What if my program outperforms the instructor's program on two leaderboards (2 out of the 3: hw6, hw9, hw10)? diff --git a/lectures/25_inheritance/README.md b/lectures/25_inheritance/README.md index 81bdf9d..3c4a1ff 100644 --- a/lectures/25_inheritance/README.md +++ b/lectures/25_inheritance/README.md @@ -201,23 +201,23 @@ We develop this student_test.cpp program. ### version 1 -[student_test1.cpp](student_test1.cpp) In this version, there is only one class: class Human +[students/student_test1.cpp](student_test1.cpp) In this version, there is only one class: class Human ### version 2 -[student_test2.cpp](student_test2.cpp) In this version, there is the base class - Human, and the child class - Student, but the child class doesn't have its own member variables, and its only member function is the constructor. +[students/student_test2.cpp](student_test2.cpp) In this version, there is the base class - Human, and the child class - Student, but the child class doesn't have its own member variables, and its only member function is the constructor. ### version 3 -[student_test3.cpp](student_test3.cpp) In this version, the child class has its own member functions introduce() and sleep(); and because these functions need to access the parent class's member variables, so we changed the member variables from private to protected. +[students/student_test3.cpp](student_test3.cpp) In this version, the child class has its own member functions introduce() and sleep(); and because these functions need to access the parent class's member variables, so we changed the member variables from private to protected. ### version 4 -[student_test4.cpp](student_test4.cpp) In this version, we added the destructor to both the child class and the parent class. This program shows that when the child class object is destroyed, first its own destructor gets called, and then its parent destructor gets called. +[students/student_test4.cpp](student_test4.cpp) In this version, we added the destructor to both the child class and the parent class. This program shows that when the child class object is destroyed, first its own destructor gets called, and then its parent destructor gets called. ### version 5 -[student_test5.cpp](student_test5.cpp) In this version, we added the CSStudent class, and that introduces multilevel inheritance in the program. +[students/student_test5.cpp](student_test5.cpp) In this version, we added the CSStudent class, and that introduces multilevel inheritance in the program. ## 25.7 What will be printed when running this program?