当我conda init cmd.exe在正常或管理模式下运行时,出现以下错误。
WARNING: Cannot install xonsh wrapper without a python interpreter in prefix: C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\Scripts\conda.exe
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\Scripts\conda-env.exe
modified C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\Scripts\conda-script.py
modified C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\Scripts\conda-env-script.py
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\condabin\conda.bat
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\Library\bin\conda.bat
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\condabin\_conda_activate.bat
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\condabin\rename_tmp.bat
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\condabin\conda_auto_activate.bat
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\condabin\conda_hook.bat
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\Scripts\activate.bat
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\condabin\activate.bat
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\condabin\deactivate.bat
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\Scripts\activate
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\Scripts\deactivate
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\etc\profile.d\conda.sh
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\etc\fish\conf.d\conda.fish
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\shell\condabin\Conda.psm1
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\shell\condabin\conda-hook.ps1
needs sudo C:\Users\JASONL~1\AppData\Local\Temp\_MEI202282\etc\profile.d\conda.csh
modified HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
Run Code Online (Sandbox Code Playgroud)
这是什么意思以及如何解决它?我应该尝试全新安装吗?
我将如何使用向量函数,其中向量名称是一个变量?我所指的粗略草图:
void someFunc(int x) {
vector<int>v0;
vector<int>v1;
vector<int>v2;
switch (x) {
case 0: //var will be assigned v0
case 1: //var will be assigned v1
case 2: //var will be assigned v2
}
var.assign(10, 1); //eg. when x == 1, it will be v1.assign(10,1)
}
Run Code Online (Sandbox Code Playgroud) 假设我有一个返回的调用函数,我可以让它返回到返回地址之前的 x 行吗?例如。
call foo --> line 72 - calling bar will return here.
mov ax,1
call bar --> line 74
bar:
mov ax,2
ret (-2)
Run Code Online (Sandbox Code Playgroud)
我的目标是创建一个可调用的函数,该函数将始终返回到调用地址之前的 2 行,而不必使用十亿个标志和标签。