Heim  >  Artikel  >  Backend-Entwicklung  >  不知道是错哪了,好像还是死循环

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

WBOY
WBOYOriginal
2016-06-13 13:22:39686Durchsuche

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

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>
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn