Homework 5 - Beginner C++

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
KD1535
Posts: 4
Joined: May 17th, 2019, 8:20 pm

Homework 5 - Beginner C++

Post by KD1535 » May 17th, 2019, 8:26 pm

The code in the homework 5 video is not the same as the parent video - tutorial 5. There are multiple variables and if statements missing and changes to the header files in the homework 5 video, but Chilli is still able to execute the code in the video. Is there something I am missing or should I just scratch all the code I have done up until this point and just copy the code in homework 5 video?

KD1535
Posts: 4
Joined: May 17th, 2019, 8:20 pm

Re: Homework 5 - Beginner C++

Post by KD1535 » May 19th, 2019, 4:30 pm

Update: I ended up scraping all the code that led up to this point and copied chili's code. From here I compared the new code and the old code and spent my time understanding how the new code was still working despite all the changes.

Not sure if this was the point of the homework, but it honestly helped me learn alot more about what we were coding.

User avatar
Yumtard
Posts: 575
Joined: January 19th, 2017, 10:28 pm
Location: Idiot from northern Europe

Re: Homework 5 - Beginner C++

Post by Yumtard » May 19th, 2019, 4:55 pm

at the end of episode 5, chili gives you homework.
In the homework video he then shows his solution to the homework so obviously the code will be a bit different

KD1535
Posts: 4
Joined: May 17th, 2019, 8:20 pm

Re: Homework 5 - Beginner C++

Post by KD1535 » May 19th, 2019, 9:47 pm

EDIT - Double posted -
Last edited by KD1535 on May 19th, 2019, 9:49 pm, edited 1 time in total.

KD1535
Posts: 4
Joined: May 17th, 2019, 8:20 pm

Re: Homework 5 - Beginner C++

Post by KD1535 » May 19th, 2019, 9:48 pm

at the end of episode 5, chili gives you homework.
I understand that if you even read my post.
In the homework video he then shows his solution to the homework so obviously the code will be a bit different
Not sure when the last time you watched those particular videos, but if you go back you will notice the code is completely different, not just a bit different. The homework solution video's code does not contain anything we implemented from the past videos.
[/quote]

User avatar
DEM0N194
Posts: 28
Joined: April 15th, 2017, 4:14 pm
Location: Slovakia
Contact:

Re: Homework 5 - Beginner C++

Post by DEM0N194 » May 19th, 2019, 10:19 pm

Yeah, I'm pretty sure that's because it was simply a separate thing. A separate homework task you should try to do on your own using the concepts you've learned in the previous videos.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Homework 5 - Beginner C++

Post by albinopapa » May 20th, 2019, 3:37 am

Yeah, after going back and watching and reading the wiki, it says nothing aside from "Draw two targeting boxes, one controlled with the arrow keys and one stationary, and have the color of the mobile targeting box change whenever the targeting boxes overlap."

The targeting boxes should already be part of the code from the tutorials, the controls should also be part of the tutorial code. The changing colors should be the part and the stationary box you need to figure out using the conditional variables and if statements, though it sounds like you already went through the homework.

It is a bit confusing, but chili is definitely a firm believer in making you think for yourself once he gives you the tools and teaches you how they are used.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Savnisharma
Posts: 1
Joined: May 20th, 2019, 7:17 am
Contact:

Re: Homework 5 - Beginner C++

Post by Savnisharma » May 20th, 2019, 7:19 am

Excellent post..I got valuable information here..Thanks for such an excellent thread! Keep up the great work!

Bradlitt
Posts: 1
Joined: August 15th, 2020, 8:45 am

Re: Homework 5 - Beginner C++

Post by Bradlitt » August 15th, 2020, 8:51 am

I got valuable information here Hungry Shark World Mod Apk
Last edited by Bradlitt on January 11th, 2021, 1:15 pm, edited 1 time in total.

Sang15512
Posts: 1
Joined: September 3rd, 2020, 11:37 am

Re: Homework 5 - Beginner C++

Post by Sang15512 » September 3rd, 2020, 11:43 am

Great Information.Thanks for sharing

Post Reply