使用字符串函数长度检查较为频密。
为了避免这一点,您必须显式地向代码添加字符串长度检查。
To avoid this, you must explicitly add string length checks to the code.
字符串长度检查:在输入框输入超出长度的字符串将会被允许,但要确保它不被程序通过。
String length check: put excess of characters in a input box should support and make sure it is not taking that.
First, I'm going to do a sanity check strlen so we've used string length, strlen, before.
首先,我先做一个检查,我们以前使用过字符串长度函数。
I have not checked the length of the variable called nan.
没有检查变量的长度。
应用推荐