+ 12

C++ pointers are scary

Since C++ pointers can access anything on the heap, I am scared that while using them they might corrupt my other programs and destroy other IMPORTANT processes. Is there any IDE that lets me do so safely? Also, is the stack safe?

12th Apr 2019, 7:56 AM
I'm a Squirrel
I'm a Squirrel - avatar
13 Respostas
+ 6
Sticking to a higher language to overcome fear of pointers is like sticking to the countryside to overcome fear of water.
12th Apr 2019, 7:34 PM
HonFu
HonFu - avatar
+ 5
Only scary if you don't know how to use them.
14th Apr 2019, 2:00 PM
Sonic
Sonic - avatar
+ 3
Just use like those famous IDEs, like VS Code, Atom and stuff
12th Apr 2019, 8:02 AM
[Abandoned]
[Abandoned] - avatar
12th Apr 2019, 8:18 AM
HonFu
HonFu - avatar
+ 3
I'm A Squirrel, they can take away the problems coming with having to free the memory, forgetting to nullify, or accidentally using a dangling pointer to point to a random location. You just have to require the memory which is the simple part. So i actually think they should mitigate your problems quite a bit!
12th Apr 2019, 9:37 AM
HonFu
HonFu - avatar
+ 2
That's why I learned Java alongside with C++. It has no pointers.
12th Apr 2019, 11:46 AM
David Kamal
David Kamal - avatar
+ 2
C++ are interesting. IDEs - safe. Learn Javascript., Python & Java to get rid of your fear. 😑
12th Apr 2019, 7:28 PM
Asim Farheen
Asim Farheen - avatar
+ 2
Asim Farheen I agree they will eventually lead you to learn lower level languages as you get to more advanced concepts.
2nd May 2019, 11:51 AM
Kulisap
Kulisap - avatar
+ 1
Hon Fu, yes I have, but they don't seem to solve my problem.
12th Apr 2019, 8:38 AM
I'm a Squirrel
I'm a Squirrel - avatar
0
Absolutely
13th Apr 2019, 2:58 PM
verio elfando
0
Try to return more than one value from your functions , create something like stacks and queues , or make something look like a dynamic arrays to figure out one of the power of pointer
7th May 2019, 5:48 PM
Omar Sherif
Omar Sherif - avatar
- 2
Hello
12th Apr 2019, 3:37 PM
Esra
- 2
خرب عمي شنهاذ
9th Oct 2019, 11:00 AM
بسـّـ✮ﮩ๋͜‏ـو𖤍᭄