| |

VerySource

 Forgot password?
 Register
Search
View: 583|Reply: 0

How to assign values ​​to this array!

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-7 08:10:01
| Show all posts |Read mode
There is a two-dimensional array s, 1000 rows and 1000 columns, s [1000] [1000]
Requirement 1) Initialization with oxff
    2) The bit position corresponding to the strong number is 0
For example: the fourth bit of the fourth column s [3] [0] is 0
That is, 0 is assigned at the position where the oblique triangle is formed from the 0th bit. Other position is 1
It ’s like: 0111 1111 1111 1111 1111 1111 .. corresponds to s [0] [0] -s [0] [2] 7f ff ff
      1011 1111 1111 1111 1111 1111 ....... Bf ff ff .......
      1101 1111 1111 1111 1111 1111 ......... Df ff ff .......
         .......

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