Iterators in C++ - Easy Tutorial

  Рет қаралды 1,004

Programming With Nick

Programming With Nick

Күн бұрын

Пікірлер: 21
@StarFury2
@StarFury2 Жыл бұрын
These short C++ tutorials are great, but those complete full-length projects (like Tetris, Pong and Snake) is what sets you apart from any other tutorial channels. I know those take ages to make, but I still hope we can get C++ Space Invaders soon :)
@programmingwithnick
@programmingwithnick Жыл бұрын
Yes I understand your point. Don't worry, the work on the Space Invaders tutorial has started ;-)
@StarFury2
@StarFury2 Жыл бұрын
Great news, looking forward to it! :) Take your time and thank you for your hard work!
@2000jago
@2000jago Жыл бұрын
C++ - Instant thumbs up from me!
@programmingwithnick
@programmingwithnick Жыл бұрын
Appreciated!
@LuisMedina-dk3vc
@LuisMedina-dk3vc 11 ай бұрын
Excelente, thank you. I hope you continue making more videos about iterators, templates and Containers with classes an OPP.
@programmingwithnick
@programmingwithnick 11 ай бұрын
That's the plan!
@thorn8395
@thorn8395 11 ай бұрын
please keep making similar c++ tutorials!
@Tims_Projects
@Tims_Projects Жыл бұрын
I love the way you pronounce iterator 😉
@easy_3d
@easy_3d 11 ай бұрын
Hey Nick, I have a question regarding your dfplayer with arduino program, how can i add a code to switch on the led when the music is played by dfplayer and push button is pressed??
@frankstercodestuff
@frankstercodestuff 11 ай бұрын
Hey! I love your videos, I learn so much from them! Is it possible for you to make a tutorial about making an executable file (raylib) so my friends can play my games? It’s okay if it’s not possible, but I would really appreciate if you could respond!
@Yamu_168
@Yamu_168 5 ай бұрын
Hey you did it haha
@opkp
@opkp 11 ай бұрын
really helpful, thanks
@programmingwithnick
@programmingwithnick 11 ай бұрын
Glad to hear that!
@manuelgarciagarcia2501
@manuelgarciagarcia2501 Жыл бұрын
How could you eliminate elements from the vector while traversing the vector with the for loop, I give you an example: If I have a ship and it launches bullets when firing, we would add the bullets to the vector while the ship fires, but when the bullet leaves the screen or collides with an enemy we would have to eliminate the bullet, as it would be.
@programmingwithnick
@programmingwithnick Жыл бұрын
That's a function I have that does something similar. We are going to use it in the space invaders example: void Game::DeleteInactiveLasers() { auto it = alienLasers.begin(); while(it != alienLasers.end()) { if(it-> active == false) { it = alienLasers.erase(it); }else { it++; } } }
@manuelgarciagarcia2501
@manuelgarciagarcia2501 Жыл бұрын
@@programmingwithnick Either smart pointers or normal pointers will be used in the space invaders example, or perhaps no pointers will be used. Another question, to load the images that will be in a folder, some function will be used that cycles through the images in that folder or whatever.
@StarFury2
@StarFury2 Жыл бұрын
I guess it's not a good idea remove container elements while iterating. iterate through all first, check conditions, then delete unnecessary elements.
@manuelgarciagarcia2501
@manuelgarciagarcia2501 Жыл бұрын
@@StarFury2 Can you give an example of how you would do it?
@Yamu_168
@Yamu_168 5 ай бұрын
Spartan chad
@programmingwithnick
@programmingwithnick 5 ай бұрын
Haha yes!
ITERATORS in C++
17:09
The Cherno
Рет қаралды 211 М.
Session 08 : Control FLOW in Python (Loops)
44:25
YuriODev
Рет қаралды 1,2 М.
Haunted House 😰😨 LeoNata family #shorts
00:37
LeoNata Family
Рет қаралды 4,2 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 1,5 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 123 МЛН
"Hello, World" in 5 CURSED languages that no one should use
13:08
Dreams of Code
Рет қаралды 553 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 108 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 425 М.
how Google writes gorgeous C++
7:40
Low Level
Рет қаралды 939 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,8 МЛН
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 831 М.
you will never ask about pointers again after watching this video
8:03
Get Started in raylib in 20 minutes!
21:05
Programming With Nick
Рет қаралды 19 М.