Re: Pointers in C++

2018-01-08 Thread AudioGames . net Forum — Developers room : Kyleman123 via Audiogames-reflector
Re: Pointers in C++ Jonikster the reason you aren't understanding the many ways that you can use pointers is because you switch around and don't learn one tool. C++ is powerful. some of that is due to pointers. there are many ways to use pointers: dynamic memory allocation is just one

Re: Pointers in C++

2018-01-07 Thread AudioGames . net Forum — Developers room : chpross via Audiogames-reflector
Re: Pointers in C++ Hello,I agree with visualstudio, use smartpointers, this pointers will delete the conten or the pointed-object when you are outsite the block. This is recommented, because when a exception is thrown, it clean automaticly up the pointers. Also the smartpointers throw

Re: Pointers in C++

2018-01-07 Thread AudioGames . net Forum — Developers room : visualstudio via Audiogames-reflector
Re: Pointers in C++ hello again,i recommend you to use smart pointers (they use rII to new and/or delete the pointers and you wont get memory leek) URL: http://forum.audiogames.net/viewtopic.php?pid=346416#p346416 ___ Audiogames-reflector

Re: Pointers in C++

2018-01-07 Thread AudioGames . net Forum — Developers room : Hrvoje via Audiogames-reflector
Re: Pointers in C++ I was reading a book for C++ today, and some of the important rules when dealing with pointers are:1. When using new keyword, also always use delete, in case when you no longer need that pointer to prevent memory leaks.2. After using delete, also reset that pointer

Re: Pointers in C++

2018-01-07 Thread AudioGames . net Forum — Developers room : visualstudio via Audiogames-reflector
Re: Pointers in C++ read about heep and stackwhen you declare a variable, it will be allocated on the stack while pointers are allocated into heepyou can manage memory with it (allocate and free when it is needed) hence faster speed and lower memory usagein OS development, it is needed

Pointers in C++

2018-01-07 Thread AudioGames . net Forum — Developers room : jonikster via Audiogames-reflector
Pointers in C++ Hello.I know the basics of C++. I know pointers, but I have a problem with this.I know how to create pointers. I know how to output the address of a variable in memory. But what for it is necessary, where it is necessary to use, I do not know.I know the only example