Actually, we'readjustingourviewhere a littlebitinrealtimesothatwecanactuallyseenotonlythecommentsniceandwide, butalsoourfollowershere.
Sosayyed 055 aswell.
ThankyouverymuchforthefollowLitato G and D Manda.
Oh, andwehave a few, actually.
AndseeMissSweden.
Hugh, thankyouverymuchforthefollows.
Wereallyshouldjustsayhellotopeople's numbers.
Yeah, maybeitmightbe a littleeasiertopronounceyou, butYeah.
Sowehave a bunchofawesomeprojecttoday.
AndalsothankstoBrianforjoiningusforthefirsttime.
Absolutely.
Andmanymoregoingforward.
Whydon't we?
Whydon't wediverightintoourfirstproductroll?
Sure.
Soifyou'renewtothestream, weviaColtonsolicitedsomecodethatfolkshadworkedonotherforpersonalprojectsorotherwiseby a Googleform a fewweeksago.
Andwegot a numberofsubmissionspython, html, c andotherlanguages.
AndsowhatBrianand I thoughtwewoulddotodaywithColtonhereisjustprovidesomefeedback, muchlikeourteachingfellowshereoncampusWould, basedonthedesignthing, efficiency, thequalityofthecodethatwe'reseeingandcertainlytakeallthiswith a grainofsalt.
Sowehavethemainfunctionthere, Soitseemslikewellupatthetopbeforethemainfunctionthere, includingStandardOut H, whichyoumightbefamiliarwith a fewchickens.
50.
Weusethatin a lotofseeprogramsandthenthere, includingpicksmapdoteach, whichlookslikeit's probablytheheaderfileforthelibrarythatNoahhascreatedhere, andthat's gonnagivehimaccesstosomeofthetypesthatwe'regoingtoseeinjust a moment, probablyinsomeofthefunctions.
Meanwhile, soinsidethemainfunctionwe'redefining a somethingoftypepicksWMAPimage.
Sonotanimagethat's builtindeceased's probablyhavesomesortofdefinitionthatwilltake a lookatjustthemomenton.
We'refighting a pointertoitcalledImage, andthenwe'rerunning a functionthatlookslikehe's definedcalledpicksWMAPImageopen.
I presumethisisgonnabesomefilepathtotheimagethatwe'regoingtotryandopen, andwe'regonnastoresomesortofdataaboutitinsideofwhat's pointedtobythePointerimage.
So I'm a littlenervousandwewouldn't knowreallyuntilwediveintothecode.
Butbecauseimagesdeclaredis a pointer.
Asperthisasteriskrighthere, a pointerto a picksmappedimage.
I'm a littlenervousthatweretheninthesamplecode, gettingtheaddressofthepointerunlessthisimageisactuallygonnado a lotofourmemoryallocationforusandthenchangewhatisatwhatpointchangedthecontentsofthatpointeritselfasopposedtowhatit's pointingit.
Butwe'llsee.
Yeah, that's a goodplace.
Isappointedto a pointer, whichfeels a little a littleworrisome.
Butmaybeit's correct.
Yeah, allright.
Andthendownhere, Doyouwanttofightonforwhat's goingon a littlefurtherwiththeseprints?
Imagegetheight, eachofwhichistakingthatpointer a pointerto a pixelimage.
Andpresumablythosefunctionsareabletotakethatimageandsomehowwhereinsidethedatastoredwithintheimagegetaccesstothewidthandtheheightofthatimageandmaybe a couplepointsyear.
Ifyou'vebeentakingCS 50 youmightknowthatinrecentyearsweactuallyintroducestudents 2% I forintegerwellpercent D fordecimalintoJuriesalmostidentical, anditisinfact, withthecontextofprintdepth.
It's a littledifferentifyou'reusingscanningforactuallygettinguserinput.
Butthat's otherwise.
Thesamethingispercent I and I thinkit's worthnoting.
Forthoseofyouwhohaveheardaboutorfamiliarwithobjectorientedprogramming, thisis a convention.