compiler-errors

    -4热度

    2回答

    我创建地图这样的:std::map<int, std::string> mapID; 输入:的azazaz [1] =! “串”; 我想用键打印元素是s。 例如 cout << "The string is : " << mapID.at(s)->second << endl; OR cout << "The string is : " << mapID.find(s)->second <<

    1热度

    5回答

    此ProductDAO类返回用户的产品列表,但Netbeans中的编译器显示“缺少返回语句”。任何进展? public List<Product> doSelectAvailableProducts(String userid){ Connection con = null; Statement stmt = null; ResultSet rs = null;

    0热度

    2回答

    我创造,我用e.g创建运行时类引用的程序: String hero1builder = "index."; System.out.println("Enter hero 1:"); hero1 = scanner.nextLine(); hero1builder += hero1; hero1cls = Class.forName(hero1builder); System.out.pr

    1热度

    3回答

    所以我有一个问题,我一直在争取几个小时。这里有各种各样的抱怨同样的问题,但没有解决方案,为我的工作在做题.. 我有2层结构 ​​ 我要振作initialze他们是这样的: static const JointPositions pos = { {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}

    -1热度

    2回答

    我试图列表转换的LinkedList在科特林,这里是我的错误代码的IntelliJ 但在科特林REPL我可以做这样的事情 这有什么错我的代码?

    0热度

    1回答

    有没有人可以帮助我确定下面编译器错误的原因。 “.. \ TestRT \ TDP \ PPCGNU \ LIB \ custom.h:428:错误:‘ASM’不可能的约束”: 在此先感谢 代码!

    2热度

    1回答

    我开始学习OCaml语言。你能告诉我为什么这段代码显示错误吗? let unite x = if x < 100 then x mod 10 else if x >= 100 then x mod 100;; let dizaine x = if x < 100 then x/10 else if x >= 10 then unite(x/10);;

    1热度

    1回答

    为了使申请获奖者队我用下面的代码,它是在编译器如Inellij工作.. Scanner scanner = new Scanner(System.in); System.out.println("how many cases"); int cases = scanner.nextInt(); if (cases < 1 || cases > 100){ S

    2热度

    1回答

    我想包括QSoundeffect在我的项目,但我得到一个编译错误 /home/innereye/Qt5.7.0/5.7/gcc_64/include/QtMultimedia/qsoundeffect.h:76: error: expected unqualified-id before '{' token 当我看到在代码中的相关行,我看到名为状态枚举声明。 enum Status {

    1热度

    1回答

    我正在使用react-redux和typecript,所以我有.tsx文件。我简单的代码看起来很简单明显,但打字稿编译器会引发我提供者元素的类型错误,所以我不明白我做错了什么。 这里是我的简单的代码 import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { Provider } from 'r