South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
I'm studying c++, in what type of apps are the c++ pointers used?
Thanks
Protip: Never use pointers unless it's absolutely necessary.
Protip: Do not be fearful of pointers.
int& someInt;
I stand to be corrected.
But a good example would be this.
Open a 100 Mb text file with normal windows Notepad.exe you will notice it hangs for a while untill it has loaded all of the data into the notpad text box or crashes as the text box cant handle all of the data at once (I think in VB terms notepad will be able to handle the maximum amount of data a Vb6 string can handle which is again i stand to be corrected an integer amount of characters.
scroll up and down about and you will see that it hangs as its trying to get to the point where you scrolled to.
Then open the same file with Notepad++ you will see that it can scroll smoothly and that's because it reads from Hdd as you scroll. and has a good memory manager and is only pointing to sections in the memory which is usefull to you at the time
C++ pointers are useful for passing your BSc in Computer Science![]()
That's relevant to what I'm asking about, but does that involve pointers or just reading part of the file using the file library functions? Thanks
Protip: Never use pointers unless it's absolutely necessary.
Excuse me? please tell me you're joking.