Home >Backend Development >PHP Tutorial > 不知道是错哪了,好像还是死循环

不知道是错哪了,好像还是死循环

WBOY
WBOYOriginal
2016-06-13 13:22:39727browse

不知道是哪里错了,好像还是死循环

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->result();
function result()
{
    while($_POST["m"]&&$_POST["n"])
    {
$outmap = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
$arr[20]=array(0);
$j=0;
do{
    for($t=0;$t=0&& $arr[$n]>=$nMaxElm;++$arr[--$n]);
    if($n


------解决方案--------------------
估计楼主把while($_POST["m"]&&$_POST["n"])
改成if($_POST["m"]&&$_POST["n"])你的程序会给你输出你想要的结果。



探讨

PHP code

result();
function result()
{
while($_POST["m"]&&$_POST["n"])
{
$outmap = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
$arr[20]=array(0);
$j=0;
do{
for……

------解决方案--------------------
PHP code
while($_POST["m"]&&$_POST["n"]) <div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn