c++ - 字符串蛮力匹配问题
伊谢尔伦
伊谢尔伦 2017-04-17 13:01:43
0
1
521
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
PHPzhong

Writing "m <= j" is irregular and should be written in the form of "m == j".

is actually written as

if(m == j) 
    break;

is also problematic, because only the inner loop is broken, and the outer loop is not broken. The loop continues to execute, and the function does not end.

can be written as:

if(m == j)
    return i;

Anyway, this code is messy. Don’t worry about this code. If you read this kind of code too much, it will affect your programming level.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!