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