小编bui*_*ude的帖子

运行Android应用程序时出错 - 无法初始化OpenglES仿真,请使用'-gpu off'禁用它

我是android编程的新手.我指的是google开发者网站,以学习android.当我运行应用程序UI时,我遇到了这些错误.

 H:\SDK\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none
 emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to   disable it.
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 could not get wglGetExtensionsStringARB
 getGLES1ExtensionString: Could not find GLES 1.x config!
 Failed to obtain GLES 1.x extensions string!
 Could not initialize emulated framebuffer
Run Code Online (Sandbox Code Playgroud)

我正在使用android studio.

android android-virtual-device android-layout android-fragments android-activity

36
推荐指数
3
解决办法
9万
查看次数

PHP中一个数字的递归和阶乘

<?php  
function factorial_of_a($n)  
{  
    if($n ==0)  
    {  
        return 1;  
    }
    else   
    {    
        return $n * factorial_of_a( $n - 1 );  
    }  
}  
print_r( factorial_of_a(5) );
?>  
Run Code Online (Sandbox Code Playgroud)

我的疑问是:

return $n * factorial_of_a( $n - 1 ) ;
Run Code Online (Sandbox Code Playgroud)

在这个陈述中 - 它给出了20 $n = 5和/ 的结果$n - 1 = 4.但是当我运行时,答案120怎么样?嗯,120是正确答案......我不明白它是如何运作的.我使用了for-loop而且工作正常.

php recursion

5
推荐指数
1
解决办法
950
查看次数