outofrangeexception

    0热度

    2回答

    下面的代码与第一次运行DataTable时的操作完全相同。数据表被加载,它使用指定的字符串更新指定的所有列数据。一切都已经关闭(并可能被清除)。 public void AppendKeyColumn(string appendText, params string[] columnNames) { string columns = ""; // Create a l

    -4热度

    1回答

    我正在使用shellort从输入文件中查找总体。 这里是我的代码: package assignment.pkg3; import java.io.*; import java.util.*; public class Sorting{ public static void main (String[] args) throws IOException {

    0热度

    1回答

    我有一个列表视图有7列。我想在每列添加信息,但是当它从listView到达子项2时,即使我有该子项,我也会得到一个System.ArgumentOutOfRangeException。 任何想法,为什么我得到这个错误?我试图寻找它,但我还没有找到类似的情况。 这是代码的一部分,我得到这个错误: if (seen == true) listView1.SelectedItems[0].

    1热度

    1回答

    #include <iostream> #include <random> #include <fstream> #include <time.h> using namespace std; bool generateRandomValue() { static std::default_random_engine e{}; static std::unifor

    3热度

    1回答

    我归并排序总码匹配时IndexOutOfRangeException,看起来是这样的: let remove array = Array.sub array 1 (array.Length - 1) let rec merge (chunkA : int[]) (chunkB : int[]) = if chunkA.Length = 0 && chunkB.Length

    0热度

    1回答

    我忽略了在这段代码(或任何其他编码项目)上工作了一段时间,所以虽然我知道代码基本错误,我一直很难找到矢量超出范围的确切位置。我一直在上面运行gdb而无济于事。我试图用C++中的矢量“theData”创建一个最小堆。 #include <iostream> #include <vector> #include <algorithm> using std::vector; using std

    0热度

    1回答

    我在C#中的初学者和不断收到此错误“CS1501没有重载方法‘GetDeviceSelector’需要两个参数” Visual Studio中建议修改SerialDevice.GetDeviceSelector(vid, pid)到SerialDevice.GetDeviceSelectorFromUsbVidPid(vid, pid)。 这个工作,但是当我在Windows 10上我的树莓派3运行

    -1热度

    1回答

    我收到以下错误: An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll Additional information: Length cannot be less than zero. 这是产生误差的代码: ​​ 的错误出现在度线,并告诉我的StopPtr正在返回-1

    1热度

    1回答

    我正在尝试获取用户的完整列表及其电子邮件地址。在尝试了很多事情之后,下面终于给了我某种形式的喜悦,但是我得到这个错误此错误: A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll 有谁知道为什么发生这种情况以及如何防止这种情况? 完整的代码如下。 Dim en

    0热度

    1回答

    我试图解决编码蝙蝠的问题并且无法通过一项测试。 给定一个字符串,计算以'y'或'z'结尾的单词数 - 所以'heavy'中的'y'和'fez'中的'z'数,而不是'y'在“黄色”(不区分大小写)。如果紧跟在字母后面没有字母,我们会说y或z在单词的末尾。 (注:Character.isLetter(char)的测试,如果一个字符是字母文字。) 这里是我的代码: public int countYZ(