C++ Tutorial: Pointer, Reference and Value Types

Опубликовано: 06 Октябрь 2024
на канале: Iain McManus
210
18

In this C++ tutorial we're going to look at the different ways to pass data into a function. We'll also look more in depth and pointers and references and how we should decide which method of passing to use for different scenarios.

🎞️ Chapters
00:00 Introduction
01:45 Passing by value
04:35 Passing by reference
08:50 Passing by pointer
11:15 Pointer vs Reference
15:35 Working with null pointers
18:00 Care with pointers
21:40 Diving deeper into references
24:35 Passing by const reference
25:45 Deciding how to pass data

📂 Grab the full project ➠ https://github.com/GameDevEducation/C...

If you've got questions add a comment below or send them in for the next Q&A video
🤔 Send in your questions ➠ https://forms.gle/ToyvqPaBFvpFLtNbA

📁 The searchable video archive is at ➠ https://www.iainmcmanus.dev/gamedev-e...

Looking for other ways to get involved?
🟠 Support the channel on Patreon ➠   / iaintheindie  
🟡 Get the code for all the projects on GitHub ➠ https://github.com/orgs/GameDevEducation
🟢 Check out my games on itch.io ➠ http://iaintheindie.itch.io/
🟣 Follow me on Twitter ➠   / iaintheindie  

🎉 Thankyou to all of the Patrons 🎉
➔ Grant Coble-Neal
➔ John Douglas
➔ Kasper Enwall
➔ Adam Ercanbrack
➔ Tylah Heil
➔ Ian Kehoe
➔ James McCarthy
➔ Kalvin Pearce
➔ Seriphis
➔ Bradley Seymour
➔ SiliconOrchid
➔ Brian Smith
➔ Callan Syratt
➔ Daniel Williams

#cplusplustutorial #Tutorial #cplusplus