我有一个列表,我想从右边加倍此列表中的每个其他元素.
还有另一个相关的问题可以解决这个问题,但它从左边开始翻倍,而不是右边:Haskell:列表中的每个第2个元素加倍
例如,在我的情景中,[1,2,3,4]将变为[2,2,6,4],在那个问题中,[1,2,3,4]将成为[1,4,3] ,8].
我该如何实现?
我使用C#语言的windowsform应用程序,我有很多表单,当我想从一个遍历到另一个时,我使用this.Hide();
当我使用此方法时,我收到显示的错误,
我知道解决方案是使用Windows任务管理器结束进程,但问题是,有没有办法在表单之间使用旅行而不会导致此错误?
Error 9 Unable to copy file "obj\x86\Debug\WindowsFormsApplication1.exe" to "bin\Debug\WindowsFormsApplication1.exe". The process cannot access the file 'bin\Debug\WindowsFormsApplication1.exe' because it is being used by another process. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 2868
Run Code Online (Sandbox Code Playgroud)