Skip to content

Commit 48bb252

Browse files
committed
updated video references for all remaining specs
1 parent 30c84c0 commit 48bb252

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

_pages/2019/ap/problems/cash/cash.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ It turns out that this greedy approach (i.e., algorithm) is not only locally opt
4040

4141
== Walkthrough
4242

43+
**Note: In the past, this problem was called Greedy.**
44+
4345
video::6w7Tws0seJk[youtube]
4446

4547
== Usage

_pages/2019/ap/problems/fifteen/fifteen.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ include::../../honesty.adoc[]
2626

2727
== Getting Ready
2828

29-
Have a more in-depth look at debugging techniques from Dan. (Odds are these 23 minutes with Dan will save you hours over the course of the term, since GDB is a far better tool than `printf` in many cases!)
29+
Have a more in-depth look at debugging techniques from Doug. (Odds are these 30 minutes with Doug will save you hours over the course of the term!)
3030

31-
video::-G_klBQLgdc[youtube]
31+
video::-VtkMZjvvKaU[youtube]
3232

3333
== Getting Started
3434

_pages/2019/ap/problems/friends/friends.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ fahrenheit.c hello.c pennies.c
9393

9494
How nice to see them again!
9595

96-
Lastly, have a look at Christopher's short video on command-line arguments. Since we'll be converting all three of the programs listed above to accept command-line arguments (none of them currently do!), this video should come in handy.
96+
Lastly, have a look at Doug's short video on command-line arguments. Since we'll be converting all three of the programs listed above to accept command-line arguments (none of them currently do!), this video should come in handy.
9797

98-
video::X8PmYwnbLKM[youtube]
98+
video::AI6Ccfno6Pk[youtube]
9999

100100
If you happen to see (and are confused by!) `char *` in this and other shorts, know for now that `char *` simply means `string`. But more on that soon!
101101

@@ -136,7 +136,7 @@ int main(int argc, string argv[])
136136

137137
we then have access to two special variables that we can use inside of `main`. First is `argc`, which is an integer variable that tells us how many things the user typed in at the command line, and second is `argv`, which is an array of strings representing exactly what the user typed.
138138

139-
Knowing this, and from the information in Christopher's short, can you now modify `hello.c` so that it prints out the name provided at the command line, instead of collecting a `string` from the user after the program has started?
139+
Knowing this, and from the information in Doug's short, can you now modify `hello.c` so that it prints out the name provided at the command line, instead of collecting a `string` from the user after the program has started?
140140

141141
One more wrinkle. How do you make sure the user in fact did provide you with one (and only one) additional argument, so that you can print it out? Well remember that's what our new friend `argc` can manage for us. If the user doesn't supply a command-line argument, best to terminate the program and have them try again. One way to accomplish this might be to have this near the top of our code:
142142

_pages/2019/ap/problems/house/house.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ video::WAxH0YHdTuA[youtube]
3030

3131
Although they've also been known to be a bit smaller than that:
3232

33-
video::BNpiwOkKIJ8[youtube]
33+
video::HXs8G7Kjrd8[youtube]
3434

3535
But perhaps there are some that do not even use electricity?
3636

_pages/2019/ap/problems/vigenere/vigenere.adoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,16 @@ include::../../honesty.adoc[]
1919

2020
== Starting Shortly
2121

22-
We'd recommend you get started by watching a few short videos; in particular, these three on functions, command-line arguments, and the Vigenère cipher. If you happen to see (and are confused by!) `char *` in these and other shorts, know for now that `char *` simply means `string`. But more on that soon!
22+
We'd recommend you get started by watching a couple of short videos; in particular, these two on functions and command-line arguments. If you happen to see (and are confused by!) `char *` in these and other shorts, know for now that `char *` simply means `string`. But more on that soon!
2323

24-
video::Pi0Yf-jn7O8[youtube]
24+
video::n1glFqt3g38[youtube]
2525

26-
video::X8PmYwnbLKM[youtube]
27-
28-
video::9zASwVoshiM[youtube]
26+
video::AI6Ccfno6Pk[youtube]
2927

3028
Be sure you're reasonably comfortable answering the below questions before moving too far!
3129

3230
* What's a function?
3331
* Why bother writing functions when you can just copy and paste code as needed?
34-
* What makes Vigenère's cipher more secure than Caesar's?
3532
* What does `undeclared identifier` usually indicate if outputted by `make` (or, really, `clang`)?
3633

3734
Now execute

_pages/2019/ap/problems/whodunit/whodunit.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ include::../../honesty.adoc[]
1717

1818
== Getting Ready
1919

20-
First, curl up with Jason's short on file I/O and Rob's short on structs. Just keep in mind that Jason's short happens to focus on ASCII (i.e., text) files as opposed to binary files (like images). More on those later!
20+
First, curl up with Doug's shorts on file pointers and structs.
2121

22-
video::KwvObCA04dU[youtube,playlist="EzRwP7NV0LM"]
22+
video::bOF-SpEAYgk[youtube]
2323

24-
Next, join Nate on a tour of `valgrind`, a command-line tool that will help you find "memory leaks": memory that you've allocated (i.e., asked the operating system for), as with `malloc`, but not freed (i.e., given back to the operating system).
24+
video::N5pA7RvvQDg[youtube]
2525

26-
video::fvTsFjDuag8[youtube]
26+
Next, review (from lecture) David's introduction to `valgrind`, a command-line tool that will help you find "memory leaks": memory that you've allocated (i.e., asked the operating system for), as with `malloc`, but not freed (i.e., given back to the operating system).
27+
28+
video::ed2lnJNf7HU[youtube,start=275,end=1091]
2729

2830
Finally, remind yourself how debug50 works if you've forgotten or not yet used! (It's worth it!)
2931

32+
video::VtkMZjvvKaU[youtube,start=741,end=1797]
33+
3034
[source,bash]
3135
----
3236
debug50 ./whodunit clue.bmp verdict.bmp

0 commit comments

Comments
 (0)