| |

VerySource

 Forgot password?
 Register
Search
View: 985|Reply: 7

How to write the first parameter of the function, can anyone explain int disuzzoff(byte[] data, int sw, int sh)

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-10-12 12:00:02
| Show all posts |Read mode
How to write the first parameter of the function, can anyone explain int disuzzoff(byte[] data, int sw, int sh)
I haven't seen it,
What is the difference between writing this way?
int disuzzoff(byte data[], int sw, int sh)
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-10-12 12:15:01
| Show all posts
I have seen Java write this, it is an array.
C++ may not be able to write that way. Is the compilation correct?
Reply

Use magic Report

0

Threads

41

Posts

28.00

Credits

Newbie

Rank: 1

Credits
28.00

 Japan

Post time: 2020-10-12 13:30:01
| Show all posts
There is no difference, both are an array.
Reply

Use magic Report

1

Threads

39

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-10-12 15:00:01
| Show all posts
It seems that bute[] is written in c#.
C++ puts [] after the variable name.
Reply

Use magic Report

0

Threads

49

Posts

34.00

Credits

Newbie

Rank: 1

Credits
34.00

 China

Post time: 2020-10-12 15:15:01
| Show all posts
Practice is the only criterion for testing truth
Reply

Use magic Report

0

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-10-12 18:00:02
| Show all posts
Yes, it means it is an array pointer
Reply

Use magic Report

0

Threads

55

Posts

44.00

Credits

Newbie

Rank: 1

Credits
44.00

 Invalid IP Address

Post time: 2020-10-12 23:45:01
| Show all posts
Compile and try it yourself.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-10-13 00:00:01
| Show all posts
Agree withzfy010317

C++ still has to be standardized

Sometimes it does not necessarily mean that your writing is in line with the standard
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