A love letter in 2021: pointers

I accidentally opened a love letter from a year ago.


It’s also strange. CPP has an unwritten rule that pointers cannot point to empty addresses.
Pointers without purpose, also known as wild pointers
---Inscription
I am a pointer instantiated by the master, I can operate the kernel, I can handle memory, I can do anything
But, damn it, I have no destination.
So I can only be a wild pointer. At the beginning, everyone was happy to see me.
After the test found out that I was a wild pointer, the loss was instantly visible.
And I was abandoned by them coldly and ruthlessly, just because I was a wild pointer, I didn’t belong, and I couldn’t accomplish anything.
I walked aimlessly around each block, and no one glanced at me.
In terms of functionality, I am not as good as a smart pointer, and in terms of pointing, I am not as good as an ordinary pointer.
Why did the master create me? It’s really strange
It's been like this for a long time, but today is a little different
A variable came to me and asked me: Are you a pointer?
Hmm hmm hmm (nodding crazily)
I am a variable, I have an address, so you can follow me for now.
In a dazed state, I pointed at her, and I also pointed at the address.
I was finally being exploited by other code and taken seriously
She then took me around function blocks, class blocks, and structure blocks.
I saw the function stack, the data and methods of the class, and the members of the structure
I saw a new world, all brought by her.
Zhang Ailing once said: When you meet the person you meet among millions of people, among millions of years, in the boundless wilderness of time, there is no step too early or one step too late. If you happen to catch up, there is no difference. There is nothing I can say, I can only ask softly: "Oh, are you here too?"
She's the address I want to point to
The story is short, but not shallow

It's passed.

Guess you like

Origin blog.csdn.net/qq_48322523/article/details/127838499