arrays

    1熱度

    3回答

    在我的php中,我正在運行一個簡單的查詢,它從我有的數據庫中返回一個結果集(0或很多)。 目前在門前的rersult看起來是這樣的: name: Smoothie description: Banana Smothie name: Phad Thai description: Noodles with shrimps name: Noodles description: Noodles with

    0熱度

    1回答

    我想在3列中顯示mysql表數據。我試過這段代碼。但它不能幫助我。我使用var_dump並接收這個輸出。 array(1) { [0]=> string(5) "Gucci" } array(1) { [0]=> string(16) "Business Insider" } array(1) { [0]=> string(10) "Health.com" } array(1) { [0]=

    0熱度

    3回答

    我想知道一個簡單的方法來按行排序文本文件。 我有2個文件: 文件1: asazxz dsa dsasd dsds tut pewoq 文件2: uiosda dsds poisss 我當前的代碼是: #include<stdio.h> #include<stdlib.h> #include<string.h> int main(int argc, char *argv[])

    1熱度

    1回答

    我這個64×64的二維數組 這個陣列中的數據可以在這裏下載的「負」 - 現在http://m.uploadedit.com/ba3s/1494223164755.txt ,我希望把它作爲數組的一個副本,其中具有最高值的區域接收具有最低值的區域的值,反之亦然。 Python中有這樣一個聰明的方法嗎?

    0熱度

    2回答

    我試圖創建結構的陣列的陣列,但它出現這種錯誤: 「錯誤,數組類型爲不完整元素類型」 typedef struct { char data[MAX_WORD_SIZE]; int total_count; Occurrence_t reference[MAX_FILES]; int nfiles; } Word_t; struct Word_t array[a];

    1熱度

    2回答

    我目前的一個問題,在PHP的數組, 我請求從一個HTML網站的所有<li>標籤具有: $dochtml = new DOMDocument(); $dochtml -> loadHTMLFile("my.html"); /*get all li’s*/ $lis = $dochtml -> getElementsByTagName('li'); 我的HTML正文: <li>gfvgve

    0熱度

    2回答

    我正在努力將文本文件中的句子讀入char數組。 文本文件: I am working at a gym. Someone has stolen my backpack. Everybody lies. Hello to everyone. 預期結果(數組) I am working at a gym. Someone has stolen my backpack. Everyb

    -4熱度

    1回答

    我有3個字符串數組。如何檢查一個人加入的組? String[] groupA = new String {"Tom", "Chris", "Jack", "Mary"}; String[] groupB = new String {"Chris", "Peter", "Jimmy"}; String[] groupC = new String {"Chris", "Paul", "Michae

    0熱度

    1回答

    我有以下Json響應。 { "language": "en", "textAngle": 0, "orientation": "Up", "regions": [ { "boundingBox": "96,29,244,474", "lines": [ { "boundingBox": "96,29

    -1熱度

    3回答

    我有兩個不同的問題,我需要幫助,在這段代碼中,第一個是convertToFah。我需要在構造函數中使用數組,並使用轉換爲華氏(攝氏度(雙值)* 9.0/5.0 + 32)的公式轉換每個雙精度值並返回它(我總是會得到一個像不能從double當我嘗試時加倍[])。第二個是我必須將maxMonth/minMonth設置爲與最大/最小值相同索引中的任何月份。 (所以如果最大值是10,它在數組[3],那麼這