Тёмный

C++ new Keyword with Objects and Arrow Operator 

Caleb Curry
Подписаться 652 тыс.
Просмотров 16 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@ritik.bhardwaj889
@ritik.bhardwaj889 3 года назад
"delete x;", whenever you want to delete your 'x', that's how you do it. - Caleb Curry
@markusscheidt5327
@markusscheidt5327 3 года назад
Got this video in a Ad. Best Ad i ever saw. Really helped me out because i didn't even know there was "new" in C++ Keep Up the great Work
@leandervanspeybroeck1210
@leandervanspeybroeck1210 4 года назад
Since none of the y pointers in the final infinite while loop are deleted, they have to be stored somewhere, but how could you access the different de-reference values? They all have the same pointer name? Not really a useful question, but just wonder how things would work... btw, thanks for this amazing experience, I've seen other C++ tutorials, but this tops them all!
@xSeemsLegit
@xSeemsLegit 2 года назад
Hi have you figured it out after 1 year?
@nishantsingh7479
@nishantsingh7479 4 года назад
Don't forget to tell what happened to your computer
@RobertoHernandez-sv2nf
@RobertoHernandez-sv2nf 4 года назад
Definitely use std::vector when C++11 is supported, however, older hardware may only support new.
@BrianMarshall1
@BrianMarshall1 2 года назад
I program mostly on embedded processors. I've rarely run into situations where I've needed to use new, especially with an object. I ran into a situation where using constructor/destructor wasn't working. I think it was freeing up memory, but not releasing the hardware. I kept getting errors with my object syntax. I was missing the parenthesis. Thanks!
@ashwingautam8514
@ashwingautam8514 4 года назад
Awesome Man !! Keep it up 😉
@ΝικΝοκ
@ΝικΝοκ Год назад
i think memory will run out when you reach the size of the pages the os gave to the process. it wont necessarily crash your computer
@nishantsingh7479
@nishantsingh7479 4 года назад
Could u please teach gui using c++ 🙏🙏 It would be much helpful
@jorik170
@jorik170 7 месяцев назад
hi, did you learn how to create GUIs in C++? just wanted some advice as a beginner, which library should i start with?
@nishantsingh7479
@nishantsingh7479 4 года назад
Thanks buddy😊
@KTL-rs7ge
@KTL-rs7ge 2 года назад
I've tried to see someone to run an infinite while loop of allocating memory without using delete, and now i found it. Thanks for your video!
@drpres-jpalomino6700
@drpres-jpalomino6700 4 года назад
Don’t you also have to delete the pointer and the data it points too?
@jeffdykshorn5863
@jeffdykshorn5863 4 года назад
You only have to delete the data pointed to by the pointer. The pointer will be deleted when it falls out of scope.
@siddharthasarmah9266
@siddharthasarmah9266 4 года назад
Hey what happened to your computer
@pokemonbakogan7442
@pokemonbakogan7442 4 года назад
Do you know how to create application smtp client protocol mail.ru with using c language or c++ or java
@sumitsharma-sp1rm
@sumitsharma-sp1rm 3 года назад
INT main() { B *p= new C[3]; p->show(); delete [ ] p; } Will this release the heap memory if child class array's of object is refered by base class pointer
@ScorpioHR
@ScorpioHR 2 года назад
Running new int(5) in a loop on a computer with 64GB of RAM is nerd's version of "The Horribly Slow Murderer with the Extremely Inefficient Weapon"
@geekyprogrammer4831
@geekyprogrammer4831 4 года назад
no more videos in this series?
@gradientO
@gradientO 4 года назад
Can you use VSCode?
@codebreakthrough
@codebreakthrough 4 года назад
Yes I just chose not to.
@TheRootBeerKing
@TheRootBeerKing 4 года назад
How do I get my font colors to look like yours? Love it! ❤️
@levantinian02
@levantinian02 3 года назад
u have an extension called Atom One Dark Theme, it's as cool as that
@abenzer3033
@abenzer3033 4 года назад
Thanks a lot
@drpres-jpalomino6700
@drpres-jpalomino6700 4 года назад
So what does dereference mean
@jeffdykshorn5863
@jeffdykshorn5863 4 года назад
Dereference means follow the pointer to the data.
@thecscontent5110
@thecscontent5110 4 года назад
I also do videos about programming in C++!😁🎬💻
@digvijayyamagekar4300
@digvijayyamagekar4300 2 года назад
🙌🙌
@fareastmanside5f4in
@fareastmanside5f4in 4 года назад
Thanks for the upload, I started learning C++ to be a developer or learn bitcoin programming. These tutorials help a lot. I'm on IG. Shingo
@EseaGhost
@EseaGhost 4 года назад
hue hue first
@delacruzreymiangelos.3646
@delacruzreymiangelos.3646 4 года назад
Anyone help me to know what are the codes of this :( I dont know how to codes and i have 2 days due date pleaseee help me :( create a program that computes and displays a game character's attack speed at a certain level. Use the formula below. Current attack speed = Base attack speed * (1 + (Bonus attack speed % * (Level - 1))) The variable for level should be of int type. The bonus attack speed % should be converted to decimal (divide by 100) before multiplying by the level. For example, if the user enters 4% for the bonus attack speed, the formula will use 0.04 instead of 4. Round the current attack speed to the nearest three (3) decimal places. Sample output: Enter the base attack speed: 0.658 Enter the bonus attack speed %: 4 Enter the level: 10 The character's current attack speed is 0.895.
@petkovdimitar6922
@petkovdimitar6922 3 года назад
Guten Morgen 😎☕ 🥤 🎶 und Sie können, wie elektronische Flugblätter zu lösen. Sie haben Anspruch auf 10 Fehler in 55 Minuten. Ich wünsche allen viel Erfolg 🇩🇪🇧🇬
Далее
C++  Notebooks (and New C++ Series)
8:34
Просмотров 14 тыс.
C++ new Explained
7:28
Просмотров 16 тыс.
Rate our flexibility 1-10🔥👯‍♀️😈💖
00:12
Одинокая сестра
00:14
Просмотров 18 тыс.
C++ Pointers - Finally Understand Pointers
15:56
Просмотров 215 тыс.
Cursed C++ Casts
17:41
Просмотров 74 тыс.
C++ Objects: Stack vs. Heap
15:02
Просмотров 8 тыс.
Working with References in C++
9:14
Просмотров 23 тыс.
When to use the Arrow Operator in C and C++
5:43
Просмотров 38 тыс.
Learn Any Programming Language In 3 Hours!
22:37
Просмотров 488 тыс.
Move Semantics in C++
13:10
Просмотров 299 тыс.
are "smart pointers" actually smart?
9:44
Просмотров 77 тыс.
Working with C++ Pointers
9:02
Просмотров 44 тыс.