Skip to content

Commit

Permalink
lect 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dibamirza committed Oct 8, 2023
1 parent c72ae2f commit 2b46216
Show file tree
Hide file tree
Showing 106 changed files with 87 additions and 66 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _lectures/CS24_Lecture2_ann.pdf
Binary file not shown.
Binary file added _lectures/CS24_Lecture3.pdf
Binary file not shown.
4 changes: 0 additions & 4 deletions _lectures/lect01.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ annotatedpdfurl: /lectures/CS24_Lecture1_ann.pdf
annotatedready: false
---

# Code from lecture

[{{site.lect_repo}}/tree/main/{{page.num}}]({{site.lect_repo}}/tree/main/{{page.num}})


# Topics

Expand Down
6 changes: 5 additions & 1 deletion _lectures/lect02.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ desc: "Abstract Data Types, operator overloading"
ready: true
pdfurl: /lectures/CS24_Lecture2.pdf
annotatedpdfurl: /lectures/CS24_Lecture2_ann.pdf
annotatedready: false
annotatedready: true
lecture_date: 2023-10-04
---

# Code from lecture

[{{site.lect_repo}}/tree/main/{{page.num}}]({{site.lect_repo}}/tree/main/{{page.num}})




# Topics

Expand Down
18 changes: 18 additions & 0 deletions _lectures/lect03.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
num: "lect03"
lecture_date: 2023-10-09
desc: "Operator overloading, linked list (OOP style)"
ready: true
pdfurl: /lectures/CS24_Lecture3.pdf
annotatedpdfurl: /lectures/CS24_Lecture3_ann.pdf
annotatedready: false
---
# Code from lecture

[{{site.lect_repo}}/tree/main/{{page.num}}]({{site.lect_repo}}/tree/main/{{page.num}})



# Topics
- We'll discuss the what, why, and how of operator overloading in C++!
- We'll review the Linked List data structure and contrast a procedural implementation with an OOP style implementation
12 changes: 12 additions & 0 deletions _site/assets/js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ var dates = [{

"date" : "2023-10-04",

}
,{
"type" : "lectures",
"url" : "/f23/lectures/lect03/",
"num" : "lect03",


"ready" : "true",
"desc" : "Operator overloading, linked list (OOP style)",

"date" : "2023-10-09",

}
,];

Expand Down
6 changes: 6 additions & 0 deletions _site/assets/js/scrape.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ var DEBUGGING_ONLY = {
"num" : "lect02",
},

{
"collection" : "lectures",
"url" : "/lectures/lect03/",
"num" : "lect03",
},

]
},

Expand Down
15 changes: 14 additions & 1 deletion _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,20 @@ <h1 id="cs-24-f23-problem-solving-with-computers-ii">CS 24 F23: Problem Solving
<td class="lect_num">2023-10-04</td>
<td class="lect_num"><a href="/f23/lectures/lect02/" data-ajax="false">lect02</a></td>
<td class="lect_ready">true</td>
<td class="lect_desc">Abstract Data Types, operator overloading&nbsp;(<a href="/f23/lectures/CS24_Lecture2.pdf">slides</a>)</td>
<td class="lect_desc">Abstract Data Types, operator overloading&nbsp;(<a href="/f23/lectures/CS24_Lecture2.pdf">slides</a>)&nbsp;(<a href="/f23/lectures/CS24_Lecture2_ann.pdf">annotated slides</a>)</td>


</tr>





<tr class="ready">
<td class="lect_num">2023-10-09</td>
<td class="lect_num"><a href="/f23/lectures/lect03/" data-ajax="false">lect03</a></td>
<td class="lect_ready">true</td>
<td class="lect_desc">Operator overloading, linked list (OOP style)&nbsp;(<a href="/f23/lectures/CS24_Lecture3.pdf">slides</a>)</td>


</tr>
Expand Down
Binary file added _site/lectures/CS24_Lecture2_ann.pdf
Binary file not shown.
Binary file added _site/lectures/CS24_Lecture3.pdf
Binary file not shown.
6 changes: 1 addition & 5 deletions _site/lectures/lect01/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,7 @@
</table>


<h1 id="code-from-lecture">Code from lecture</h1>

<p><a href="https://github.com/ucsb-cs24-f23/cs24-f23-lectures/tree/main/lect01">https://github.com/ucsb-cs24-f23/cs24-f23-lectures/tree/main/lect01</a></p>

<h1 id="topics">Topics</h1>
<h1 id="topics">Topics</h1>

<ul>
<li>Course overview
Expand Down
4 changes: 4 additions & 0 deletions _site/lectures/lect02/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,16 @@

<td>lect02</td>

<td><a href="/f23/lectures/lect03/">Next Lecture</a></td>

</tr>
</table>


<h1 id="code-from-lecture">Code from lecture</h1>

<p><a href="https://github.com/ucsb-cs24-f23/cs24-f23-lectures/tree/main/lect02">https://github.com/ucsb-cs24-f23/cs24-f23-lectures/tree/main/lect02</a></p>

<h1 id="topics">Topics</h1>

<ul>
Expand Down
59 changes: 27 additions & 32 deletions _site/backup_lec/lect03.html → _site/lectures/lect03/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- head.html; common header items for all layouts -->
<!-- head.html; common header items for all layouts -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

Expand Down Expand Up @@ -150,17 +150,12 @@




<!-- start custom head snippets -->

<!-- insert favicons. use https://realfavicongenerator.net/ -->

<!-- end custom head snippets -->

<title> CS24 Fall 2023</title>

<title> Lect03 | CS24 Fall 2023</title>
</head>
<body id="page-top">
<div class="container">

<div id="container" data-role="page">


<script>
Expand Down Expand Up @@ -244,33 +239,33 @@


<div id="content" class="ui-content">


<p class="topic-summary">Debugging (linked list errors) with gdb and valgrind</p>




<h1 id="topics">Topics</h1>


<p>Code that we’ll be working with</p>
<ul>
<li><a href="https://github.com/ucsb-cs24-w23/diba-cs16-final-solutions">CS16 final exam solutions (from last lecture)</a></li>
<li><a href="https://github.com/ucsb-cs24-w23/buggy-cs16-final-demo">Buggy student code</a></li>
</ul>

<p>Last lecture, we talked about how to debug using print statements
Today, I’ll demo two new debugging tools: gdb and valgrind.
We’ll do some exploration with these tools and talk about how a combination of drawing memory diagrams and gdb can help us find bugs in code.</p>


<table>
<tr>

<td><a href="/f23/lectures/lect02/">Previous Lecture</a></td>

<td>lect03</td>

</tr>
</table>


<h1 id="code-from-lecture">Code from lecture</h1>

<p><a href="https://github.com/ucsb-cs24-f23/cs24-f23-lectures/tree/main/lect03">https://github.com/ucsb-cs24-f23/cs24-f23-lectures/tree/main/lect03</a></p>

<h1 id="topics">Topics</h1>
<ul>
<li><a href="https://darkdust.net/files/GDB%20Cheat%20Sheet.pdf">GDB cheatsheet</a></li>
<li><a href="https://valgrind.org/docs/manual/quick-start.html">Valgrind quick start guide</a></li>
<li>We’ll discuss the what, why, and how of operator overloading in C++!</li>
<li>We’ll review the Linked List data structure and contrast a procedural implementation with an OOP style implementation</li>
</ul>
</div><!-- content -->
<!-- start custom footer snippets -->

<!-- end custom footer snippets -->
</div><!-- content -->


<nav class="navbar navbar-expand-lg navbar-light bg-light footer-navbar ">
Expand All @@ -280,7 +275,7 @@ <h1 id="topics">Topics</h1>
<div class="collapse navbar-collapse" id="footer-navbar-NavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link" href="https://github.com/ucsb-cs24/f23">github site</a>
<a class="nav-item nav-link" href="https://github.com/ucsb-cs24/f23/edit/master/backup_lec/lect03.md">edit this page on github</a>
<a class="nav-item nav-link" href="https://github.com/ucsb-cs24/f23/edit/master/_lectures/lect03.md">edit this page on github</a>
<span class="nav-item travis-ci-status "><a class="nav-link" href="https://travis-ci.org/ucsb-cs24/f23">
<img src="https://travis-ci.org/ucsb-cs24/f23.svg?branch=master" alt="Build Status">
</a>
Expand Down
23 changes: 0 additions & 23 deletions backup_lec/lect03.md

This file was deleted.

0 comments on commit 2b46216

Please sign in to comment.