| |

VerySource

 Forgot password?
 Register
Search
Author: jinyuyi

It is not used as a parameter, you cannot use global variables, and you cannot use it as a return value. How to use this

[Copy link]

0

Threads

73

Posts

46.00

Credits

Newbie

Rank: 1

Credits
46.00

 Invalid IP Address

Post time: 2020-4-4 14:30:01
| Show all posts
Oh, no, this cannot be copied. There is a pointer inside.

But no matter what method you use (global variables or other), as long as it is passed to it, it will always be modified.
Unless you do n’t pass it on, but how do you use it if you do n’t pass it on?

Or you just pass the file name and let him open a new one by himself.
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-4-5 10:30:01
| Show all posts
This problem has troubled me for a few days
I want to encapsulate a file system
Reply

Use magic Report

0

Threads

73

Posts

46.00

Credits

Newbie

Rank: 1

Credits
46.00

 Invalid IP Address

Post time: 2020-4-6 09:00:01
| Show all posts
Whether it is global or local, as long as it finally lets it know which variable, it is no different from passing parameters.
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-4-6 09:45:01
| Show all posts
Thank you very much for the prompt of珈蓝易拉罐! It seems that some ideas can be achieved
Reply

Use magic Report

0

Threads

73

Posts

46.00

Credits

Newbie

Rank: 1

Credits
46.00

 Invalid IP Address

Post time: 2020-4-6 10:45:01
| Show all posts
Unless you do n’t tell it and let it guess for yourself, but now the program needs to run down again, what if it ca n’t guess?
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-4-7 11:00:01
| Show all posts
Thank you珈蓝易拉罐for your tips! I try to do it. Thank you
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-12 20:15:01
| Show all posts
There is a problem with the landlord's language. The topic was read for a long time, but I didn't understand it.
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-4-14 18:00:01
| Show all posts
It may be that I have expressed too well, and I want to express too much meaning, sorry, trouble everyone, sorry, the problem has been solved! thank you all!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list