小编Vis*_*pta的帖子

Oracle虚拟机无法访问

我使用的是Oracle Virtual Box版本4.2.16 r86992.一切都很好,直到昨天关闭.今天,它显示无法访问并抛出此错误:

Runtime error opening C:\Users\xxxxxx\VirtualBox VMs\vBoxxxxXubuntu_Beta\vBoxxxxXubuntu_Beta.vbox for reading: -102 (File not found.).  
D:\tinderbox\win-4.2\src\VBox\Main\src-server\MachineImpl.cpp[725] (long __cdecl Machine::registeredInit(void)).
Run Code Online (Sandbox Code Playgroud)

恢复工作是很好的,这将节省大量时间并恢复配置设置和数据.感谢您的支持.

virtualbox virtual-machine

56
推荐指数
3
解决办法
5万
查看次数

为什么此代码对计算功率不利(效率较低)?

class Solution {
   public:
      double myPow(double x, int n) {
         double result=1;
         bool neg=false;

         if(n<0)
         {
            n = -1*n;
            neg=true;
         }
         for(int i =1; i<=n;i++)
         {
            result = x*result;
         }  
         if(neg)
         {
            result = 1/result;
         }
         return result;
      }

};
Run Code Online (Sandbox Code Playgroud)

c++ algorithm math

0
推荐指数
1
解决办法
102
查看次数

标签 统计

algorithm ×1

c++ ×1

math ×1

virtual-machine ×1

virtualbox ×1