![]() The big problem is the performance of this code. Actually the above problem is a minor problem Then subtract it from a character that is a number, and it happens to be the number value actually represented by this character. Why do you want to reduce it so much, let’s refer to it ASCII table: BinaryĪs can be seen from the above table, 0x30In fact, it is the ASCII code of 0. NET, to index a string is to retrieve the corresponding character.Ĭharacters can be implicitly converted to int,and so tempimei-0x30Means that will j*2The character at the index position is converted to intAfter subtract 0x30. We noticed tempimeiThis variable is actually a string. ![]() In fact, this is a very common way of writing What he wants to ask is, this tempimei - 0x30What does it mean? 0x2. ![]() In other words, a student in the group asked for a piece of code this afternoon. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |