I
I
idigoresha12018-06-30 21:07:49
C++ / C#
idigoresha1, 2018-06-30 21:07:49

Explain what is 0x5A in this code?

for (int i=0; i= 0x30 && username[i] <= 0x39) ||
(username[i] >= 0x41 && username[i] <= 0x5A) ||
(username[i] >= 0x61 && username[i] <= 0x7A)
Roughly guessing that 0x30, 0x39 is all related to the length of the text, but still, explain what it means..
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maaGames, 2018-07-01
@idigoresha1

It's just that someone didn't know about the isalnum function and wrote their own.
5b3859b200680579846059.gif

G
GavriKos, 2018-06-30
@GavriKos

These are hexadecimal numbers. They do not refer to the length of the text - this is a check for the occurrence of a character in a range.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question