"

kok买球官网-首页拥有全球最顶尖的原生APP,每天为您提供千场精彩体育赛事,kok买球官网-首页更有真人、彩票、电子老虎机、真人电子竞技游戏等多种娱乐方式选择,kok买球官网-首页让您尽享娱乐、赛事投注等,且无后顾之忧!

"
首頁 > C# 名字五格測試

C# 名字五格測試

互聯網 2021-04-20 21:42:07

先申明,看著這個羅莊羅大師羅半仙的文章

https://blog.csdn.net/luozhuang/article/details/8725396

https://blog.csdn.net/luozhuang/article/details/8729523

他這是java版本的?

我看了下,把它改成了C#版本

直接上代碼吧 比較亂 沒有優化命名啥的都沒動 只是能跑起來

public class LuozhuangNameClass{private int namesky;//天格private int nameearth;//地格private int nameout;//外格private int namepeople;//人格private int total;private int[] BH;//筆畫數組private int[] wuxing;//五行數組private int[] nameliborder;//在庫順序private String name;//天格計算法:天格是姓氏畫數之和,但單復姓有區別。// 1? 單姓氏:姓的文字畫數+1。//??? 2? 雙姓氏或四字名:前兩個字的筆畫總數。//人格(主運):姓+名//人格是姓名之中心,與人一生之命運關系最緊密。凡欲判斷人的吉兇,務先著眼此部,就能看出其人之中心命運性格和體質能力,是關系天格、地格之數理,變化無窮。//??? 人格計算法:人格就是姓的最下一字和名的最上一字的合計數。//??? 1? 單姓氏:姓與第二個字筆畫總數。//??? 2? 雙姓氏或四字名,第二個字與第三個字的筆畫總和。//地格(前運)://地格是名字之全畫數,亦稱前運。主中年前的運勢、與子女或下屬的關系。//??? 地格計算法:是名字之全畫數,亦稱前運//??? 1? 單姓氏:后兩個字筆畫總數。//??? 2? 雙姓氏或四字名:后兩個字的筆畫總數。//??? 3? 單字名(即兩字名):后一字筆畫數加上“1”。//??? 總格(后運):姓與名之字畫數之和稱為總格。主壯年至晚年之命運。但壯年前亦頗有靈動。//??? 總格計算法:??? 姓氏連名全體筆畫總數。//??? 外格(副運):總格減去人格的剩余數。其司命運之靈力,次于“主運”,別名“副運”。此格可見家族緣之厚薄或本人對社會之關系。//外格計算法:???姓名各字的筆畫數全部相加(即總格),減去人格數。//如是單字名或單姓,結果再分別加1。//算法就是名字三個字姓氏補1,不夠三個字后面補1 運算方法一樣//天格0+1 人格1+2 地格2+3 外格0+3 ?——大師♂羅莊Luozhuangnamewuxing myLuozhuangnamewuxing = new Luozhuangnamewuxing();public LuozhuangNameClass(String name){this.name = name;nameliborder = myLuozhuangnamewuxing.getnameliborder(name);wuxing = myLuozhuangnamewuxing.getnameWX(nameliborder);BH = myLuozhuangnamewuxing.getnameBH(nameliborder);int[] nametemp = new int[] { 1, 1, 1, 1 };if (BH.Length == 4){nametemp = BH;total = BH[0] + BH[1] + BH[2] + BH[3];}if (BH.Length == 3){nametemp[1] = BH[0];nametemp[2] = BH[1];nametemp[3] = BH[2];total = BH[0] + BH[1] + BH[2];}if (BH.Length == 2){nametemp[1] = BH[0];nametemp[2] = BH[1];total = BH[0] + BH[1];}namesky = nametemp[0] + nametemp[1];namepeople = nametemp[1] + nametemp[2];nameearth = nametemp[2] + nametemp[3];nameout = nametemp[0] + nametemp[3];}/** * 取筆畫五行 * * @return the namesky */public String getNameWX(int Bihua){int tempwx_idx = myLuozhuangnamewuxing.myBhWxLib.get_wx_idx(Bihua);if (tempwx_idx == -1){return ("沒有收錄該漢字");}return myLuozhuangnamewuxing.getnameWXnaying(tempwx_idx);}/** * @return the namesky */public int getNamesky(){return namesky;}/** * @return the nameearth */public int getNameearth(){return nameearth;}/** * @return the nameout */public int getNameout(){return nameout;}/** * @return the namepeople */public int getNamepeople(){return namepeople;}/** * @return the BH */public int[] getBH(){return BH;}/** * @return the wuxing */public int[] getWuxing(){return wuxing;}/** * @return the nameliborder */public int[] getNameliborder(){return nameliborder;}/** * @return the total */public int getTotal(){return total;}/** * @return the name */public String getName(){return name;}}/**名字測試 * * @author luozhuang 大師♂羅莊 */public class JavaLuozhuangtestnameClass{public List arraytotal = new List{new ArraytotalModel{Index="1", JxDetails="(太極之數)太極之數,萬物開泰,生發無窮,利祿亨通。",Jx= "(吉)"},new ArraytotalModel{Index="2", JxDetails="(兩儀之數)兩儀之數,混沌未開,進退保守,志望難達。",Jx= "(兇)"},new ArraytotalModel{Index="3", JxDetails="(三才之數)三才之數,天地人和,大事大業,繁榮昌隆。",Jx= "(吉)"},new ArraytotalModel{Index="4", JxDetails="(四象之數)四象之數,待于生發,萬事慎重,不具營謀。",Jx= "(兇)"},new ArraytotalModel{Index="5", JxDetails="(五行之數)五行俱權,循環相生,圓通暢達,福祉無窮。",Jx= "(吉)"},new ArraytotalModel{Index="6", JxDetails="(六爻之數)六爻之數,發展變化,天賦美德,吉祥安泰。",Jx= "(吉)"},new ArraytotalModel{Index="7", JxDetails="(七政之數)七政之數,精悍嚴謹,天賦之力,吉星照耀。",Jx= "(吉)"},new ArraytotalModel{Index="8", JxDetails="(八卦之數)八卦之數,乾坎艮震,巽離坤兌,無窮無盡。",Jx="(半吉)"},new ArraytotalModel{Index="9", JxDetails="(大成之數)大成之數,蘊涵兇險,或成或敗,難以把握。",Jx= "(兇)"},new ArraytotalModel{Index="10",JxDetails= "(終結之數)終結之數,雪暗飄零,偶或有成,回顧茫然。",Jx= "(兇)"},new ArraytotalModel{Index="11", JxDetails="(旱苗逢雨)萬物更新,調順發達,恢弘澤世,繁榮富貴。",Jx= "(吉)"},new ArraytotalModel{Index="12", JxDetails="(掘井無泉)無理之數,發展薄弱,雖生不足,難酬志向。",Jx= "(兇)"},new ArraytotalModel{Index="13", JxDetails="(春日牡丹)才藝多能,智謀奇略,忍柔當事,鳴奏大功。",Jx= "(吉)"},new ArraytotalModel{Index="14", JxDetails="(破兆)家庭緣薄,孤獨遭難,謀事不達,悲慘不測。",Jx= "(兇)"},new ArraytotalModel{Index="15", JxDetails="(福壽)福壽圓滿,富貴榮譽,涵養雅量,德高望重。",Jx= "(吉)"},new ArraytotalModel{Index="16", JxDetails="(厚重)厚重載德,安富尊榮,財官雙美,功成名就。",Jx= "(吉)"},new ArraytotalModel{Index="17", JxDetails="(剛強)權威剛強,突破萬難,如能容忍,必獲成功。",Jx= "(半吉)"},new ArraytotalModel{Index="18", JxDetails="(鐵鏡重磨)權威顯達,博得名利,且養柔德,功成名就。",Jx= "(半吉)"},new ArraytotalModel{Index="19", JxDetails="(多難)風云蔽日,辛苦重來,雖有智謀,萬事挫折。",Jx= "(兇)"},new ArraytotalModel{Index="20", JxDetails="(屋下藏金)非業破運,災難重重,進退維谷,萬事難成。",Jx= "(兇)"},new ArraytotalModel{Index="21", JxDetails="(明月中天)光風霽月,萬物確立,官運亨通,大搏名利。女性不宜此數。",Jx= "(吉)"},new ArraytotalModel{Index="22", JxDetails="(秋草逢霜)秋草逢霜,困難疾弱,雖出豪杰,人生波折。",Jx= "(兇)"},new ArraytotalModel{Index="23", JxDetails="(壯麗)旭日東升,壯麗壯觀,權威旺盛,功名榮達。女性不宜此數。",Jx= "(吉)"},new ArraytotalModel{Index="24", JxDetails="(掘藏得金)家門余慶,金錢豐盈,白手成家,財源廣進。",Jx= "(吉)"},new ArraytotalModel{Index="25", JxDetails="(榮俊)資性英敏,才能奇特,克服傲慢,尚可成功。",Jx= "(半吉)"},new ArraytotalModel{Index="26", JxDetails="(變怪)變怪之謎,英雄豪杰,波瀾重疊,而奏大功。",Jx= "(兇)"},new ArraytotalModel{Index="27", JxDetails="(增長)欲望無止,自我強烈,多受毀謗,尚可成功。",Jx= "(半吉)"},new ArraytotalModel{Index="28", JxDetails="(闊水浮萍)遭難之數,豪杰氣概,四海漂泊,終世浮躁。女性不宜此數。",Jx= "(兇)"},new ArraytotalModel{Index="29", JxDetails="(智謀)智謀優秀,財力歸集,名聞海內,成就大業。",Jx= "(吉)"},new ArraytotalModel{Index="30", JxDetails="(非運)沉浮不定,兇吉難變,若明若暗,大成大敗。",Jx= "(半吉)"},new ArraytotalModel{Index="31", JxDetails="(春日花開)智勇得志,博得名利,統領眾人,繁榮富貴。",Jx= "(吉)"},new ArraytotalModel{Index="32", JxDetails="(寶馬金鞍)僥幸多望,貴人得助,財帛如裕,繁榮至上。",Jx= "(吉)"},new ArraytotalModel{Index="33", JxDetails="(旭日升天)旭日升天,鸞鳳相會,名聞天下,隆昌至極。女性不宜此數。",Jx= "(吉)"},new ArraytotalModel{Index="34", JxDetails="(破家)破家之身,見識短小,辛苦遭逢,災禍至極。",Jx= "(兇)"},new ArraytotalModel{Index="35", JxDetails="(高樓望月)溫和平靜,智達通暢,文昌技藝,奏功洋洋。",Jx= "(吉)"},new ArraytotalModel{Index="36", JxDetails="(波瀾重疊)波瀾重疊,沉浮萬狀,俠肝義膽,舍己成仁。",Jx= "(半吉)"},new ArraytotalModel{Index="37", JxDetails="(猛虎出林)權威顯達,熱誠忠信,宜著雅量,終身榮富。",Jx= "(吉)"},new ArraytotalModel{Index="38", JxDetails="(磨鐵成針)意志薄弱,刻意經營,才識不凡,技藝有成。",Jx= "(半吉)"},new ArraytotalModel{Index="39", JxDetails="(富貴榮華)富貴榮華,財帛豐盈,暗藏險象,德澤四方。",Jx= "(半吉)"},new ArraytotalModel{Index="40", JxDetails="(退安)智謀膽力,冒險投機,沉浮不定,退保平安。",Jx= "(半吉) "},new ArraytotalModel{Index="41", JxDetails="(有德)純陽獨秀,德高望重,和順暢達,博得名利。此數為最大好運數。",Jx= "(吉)"},new ArraytotalModel{Index="42", JxDetails="(寒蟬在柳)博識多能,精通世情,如能專心,尚可成功。",Jx= "(半吉)"},new ArraytotalModel{Index="43", JxDetails="(散財破產)散財破產,諸事不遂,雖有智謀,財來財去。",Jx= "(兇)"},new ArraytotalModel{Index="44", JxDetails="(煩悶)破家亡身,暗藏慘淡,事不如意,亂世怪杰。",Jx= "(兇)"},new ArraytotalModel{Index="45", JxDetails="(順風)新生泰和,順風揚帆,智謀經緯,富貴繁榮。",Jx= "(吉)"},new ArraytotalModel{Index="46", JxDetails="(浪里淘金)載寶沉舟,浪里淘金,大難嘗盡,大功有成。",Jx= "(半吉)"},new ArraytotalModel{Index="47", JxDetails="(點石成金)花開之象,萬事如意,禎祥吉慶,天賦幸福。",Jx= "(吉)"},new ArraytotalModel{Index="48", JxDetails="(古松立鶴)智謀兼備,德量榮達,威望成師,洋洋大觀。",Jx= "(吉)"},new ArraytotalModel{Index="49", JxDetails="(轉變)吉臨則吉,兇來則兇,轉兇為吉,配好三才。",Jx= "(半吉)"},new ArraytotalModel{Index="50", JxDetails="(小舟入海)一成一敗,吉兇參半,先得庇蔭,后遭凄慘。",Jx= "(半吉)"},new ArraytotalModel{Index="51", JxDetails="(沉浮)盛衰交加,波瀾重疊,如能慎始,必獲成功。",Jx= "(半吉)"},new ArraytotalModel{Index="52", JxDetails="(達眼)卓識達眼,先見之明,智謀超群,名利雙收。",Jx= "(吉)"},new ArraytotalModel{Index="53", JxDetails="(曲卷難星)外祥內患,外禍內安,先富后貧,先貧后富。",Jx= "(兇)"},new ArraytotalModel{Index="54", JxDetails="(石上栽花)石上栽花,難得有活,憂悶煩來,辛慘不絕。",Jx= "(兇)"},new ArraytotalModel{Index="55", JxDetails="(善惡)善善得惡,惡惡得善,吉到極限,反生兇險。",Jx= "(半吉)"},new ArraytotalModel{Index="56", JxDetails="(浪里行舟)歷盡艱辛,四周障礙,萬事齟齷,做事難成。",Jx= "(兇)"},new ArraytotalModel{Index="57", JxDetails="(日照春松)寒雪青松,夜鶯吟春,必遭一過,繁榮白事。",Jx= "(吉)"},new ArraytotalModel{Index="58", JxDetails="(晚行遇月)沉浮多端,先苦后甜,寬宏揚名,富貴繁榮。",Jx= "(半吉)"},new ArraytotalModel{Index="59", JxDetails="(寒蟬悲風)寒蟬悲風,意志衰退,缺乏忍耐,苦難不休。",Jx= "(兇)"},new ArraytotalModel{Index="60", JxDetails="(無謀)無謀之人,漂泊不定,晦暝暗黑,動搖不安。",Jx= "(兇)"},new ArraytotalModel{Index="61", JxDetails="(牡丹芙蓉)牡丹芙蓉,花開富貴,名利雙收,定享天賦。",Jx= "(吉)"},new ArraytotalModel{Index="62", JxDetails="(衰敗)衰敗之象,內外不和,志望難達,災禍頻來。",Jx= "(兇)"},new ArraytotalModel{Index="63", JxDetails="(舟歸平海)富貴榮華,身心安泰,雨露惠澤,萬事亨通。",Jx= "(吉)"},new ArraytotalModel{Index="64", JxDetails="(非命)骨肉分離,孤獨悲愁,難得心安,做事不成。",Jx= "(兇)"},new ArraytotalModel{Index="65", JxDetails="(巨流歸海)天長地久,家運隆昌,福壽綿長,事事成就。",Jx= "(吉)"},new ArraytotalModel{Index="66", JxDetails="(巖頭步馬)進退維谷,艱難不堪,等待時機,一躍而起。",Jx= "(兇)"},new ArraytotalModel{Index="67", JxDetails="(順風通達)天賦幸運,四通八達,家道繁昌,富貴東來。",Jx= "(吉)"},new ArraytotalModel{Index="68", JxDetails="(順風吹帆)智慮周密,集眾信達,發明能智,拓展昂進。",Jx= "(吉)"},new ArraytotalModel{Index="69", JxDetails="(非業)非業非力,精神迫滯,災害交至,遍償痛苦。",Jx= "(兇)"},new ArraytotalModel{Index="70", JxDetails="(殘菊逢霜)殘菊逢霜,寂寞無礙,慘淡憂愁,晚景凄涼。",Jx= "(兇)"},new ArraytotalModel{Index="71", JxDetails="(石上金花)石上金花,內心勞苦,貫徹始終,定可昌隆。",Jx= "(半吉)"},new ArraytotalModel{Index="72", JxDetails="(勞苦)榮苦相伴,陰云覆月,外表吉祥,內實兇禍。",Jx= "(半吉)"},new ArraytotalModel{Index="73", JxDetails="(無勇)盛衰交加,徒有高志,天王福祉,終世平安。",Jx= "(半吉)"},new ArraytotalModel{Index="74", JxDetails="(殘菊經霜)殘菊經霜,秋葉寂寞,無能無智,辛苦繁多。",Jx= "(兇)"},new ArraytotalModel{Index="75", JxDetails="(退守)退守保吉,發跡甚遲,雖有吉象,無謀難成。",Jx= "(兇)"},new ArraytotalModel{Index="76", JxDetails="(離散)傾覆離散,骨肉分離,內外不和,雖勞無功。",Jx= "(兇)"},new ArraytotalModel{Index="77",JxDetails= "(半吉)家庭有悅,半吉半兇,能獲援護,陷落不幸。",Jx= "(半吉)"},new ArraytotalModel{Index="78", JxDetails="(晚苦)禍福參半,先天智能,中年發達,晚景困苦。",Jx= "(兇)"},new ArraytotalModel{Index="79", JxDetails="(云頭望月)云頭望月,身疲力盡,窮迫不伸,精神不定。",Jx= "(兇)"},new ArraytotalModel{Index="80", JxDetails="(遁吉)辛苦不絕,早入隱遁,安心立命,化兇轉吉。",Jx= "(兇)"},new ArraytotalModel{Index="81", JxDetails="(萬物回春)最吉之數,還本歸元,吉祥重疊,富貴尊榮。",Jx= "(吉)"}};public List arrayTDRG = new List{new TdrgModel{Td="木木木",Jx= "吉", JxDetails="★基礎安定,成功順調,希望到成,能向上發展,所求之事頗能如願;家業興隆,身心健全,保養得宜,能得長壽。若數理有兇,須防仇害之慮。"},new TdrgModel{Td="木木火",Jx= "吉", JxDetails="★天賦機智而靈敏,成功順調,少有障礙而向上發展,基礎運勢安泰;頗得人緣,受人之助而順調成功,能享受幸福、繁榮,一生有福壽。"},new TdrgModel{Td="木木土",Jx= "吉", JxDetails="★性情穩健,境遇堅固,幸福長壽;然,與人相處要培養寬恕之道。辛勤創業,一生可以吉順,尤其中年之後能夠一展才學;家庭美滿,妻賢子孝,晚年聚財。健康注意腸胃、肝疾。"},new TdrgModel{Td="木木金",Jx= "兇", JxDetails="★有轉動,難得平安,一生比較勞苦,精神壓力大;為人正直,比較缺乏耐性,有時候情緒很難掌控,因此夫妻之間爭吵多見。健康注意呼吸系統、肺功能、泌尿、精神壓力,並防腦神經或肺部氣管方面的病疾。"},new TdrgModel{Td="木木水",Jx= "兇", JxDetails="★為人意志堅定,一生辛勞勤奮,雖然財運平常,倒能夠守成度日;雖有一時成功順利發展的機會,容易因不節制而招致失敗。夫妻感情難言和偕。由於憂悶或病弱之故,罹患耳、腎、骨等病疾。"},new TdrgModel{Td="木火木",Jx= "吉", JxDetails="★能得到上下的幫助而得發展、幸福、長壽。待人誠懇,做事積極,三十五歲後有成就,最好穩定中求發展;個性達觀積極,能展抱負,晚年幸福,夫妻和偕、子女賢孝有相當成就,是完美的格局。"},new TdrgModel{Td="木火火",Jx= "吉", JxDetails="★人緣很好,特別有異性緣,一生財錢無缺、而且貴人多助,是富裕的格局;夫妻相處合樂、子女可以賢孝。早年自信心過強,缺乏忍耐力,為人衝動而積極,可以一展才華,得到相當的成就;但由於耐心不夠,恐怕終致失敗。此格火氣旺盛,若能凡事要三思而行,則更能增加成功機會。晚年注意心臟、高血壓病。"},new TdrgModel{Td="木火土",Jx= "吉", JxDetails="★一生多能受到長輩的賞識提拔而發展成功。主觀而熱情,有責任心,對下親切,事業有成就、財運豐厚,有人緣;夫妻可望圓滿幸福,子女能出人頭地。此乃長壽幸福之格,晚年吉祥如意;健康注意肝臟、高血壓病。"},new TdrgModel{Td="木火金",Jx= "兇", JxDetails="★為人坦誠直率,做事衝動而積極,能得朋友相助,花錢較浪費;事業不振,身心過勞,雖然能夠得到一時的成功,但防因為基礎不穩固而致不幸。家庭運差,夫妻常見爭吵不悅,個性有不和現象。健康注意腦神經衰弱、呼吸系統、肢體災疾、皮膚病。"},new TdrgModel{Td="木火水",Jx= "兇", JxDetails="★能言善道,急性不服輸,爭強好勝,易得罪人,乃畢生最大缺失;或有一時之成就,只恐曇花一現,好景不長,做事最好三思退守。夫妻一般感情不好,常有不悅事生;晚年財運不穩,心神比較不安寧。健康注意外傷、心、腎之災。"},new TdrgModel{Td="木土木",Jx= "兇", JxDetails="★運途不佳,性情孤獨,雖有理想大志,很難如願。待人處事很熱心,意志力卻很不堅定,目標變化大,造成容易失去許多好機會;縱有努力,財錢收穫不多,一生比較勞心勞力,最好步步為營,才是良策。夫妻常為小事爭吵。健康注意腸胃、肝疾。"},new TdrgModel{Td="木土火",Jx= "小吉",JxDetails="★為人表面達觀,內心實多憂苦,有人緣,能成功發展。有堅強意志力,能夠辛勤努力以赴,財錢還算小有積蓄。夫妻時有爭吵,感情大致圓滿。晚年健康注意腸胃、皮膚病、精神難得安寧。"},new TdrgModel{Td="木土土",Jx= "小吉",JxDetails="★待人誠懇,表現樂觀,其實是一個內心多存苦憂之人。一生辛勤勞力,財錢收益不多。做事缺乏果斷力,很容易衝動,難以掌握目標。夫妻時有相爭,家內不太合睦。切勿爭強好勝,其實平安才是真正的幸福。健康注意腸胃、筋骨、肝疾"},new TdrgModel{Td="木土金",Jx= "吉", JxDetails="★常為家庭而辛勤奮力,是一個能負責任的人。行為處事謙恭有禮,人緣很好,工作能力也強,可惜耐心不足、眼高手低。雖有展穫,四十歲前只能小見成就;若要發展,除去前述缺失,中年而後,定能事業如意,名利兼得。夫妻大致和樂,要防桃花情遇事生。健康注意腸胃、外傷。"},new TdrgModel{Td="木土水",Jx= "兇", JxDetails="★人緣不錯,要領欠佳,事職過程比較辛苦,諸事很難如意,心情苦惱事多;必須自力更生,貴人少助,作事總是勞碌,財錢收穫不多,一生財運難旺,只能勤儉行事。夫妻相處不和,家運有欠平安。健康注意腸胃、肝、腎之疾。"},new TdrgModel{Td="木金木",Jx= "兇", JxDetails="★做事雖然勤奮,主觀太強,意志也不很堅定,乃造成見有食無現象,表面風光,其實內心憂鬱、很難一展才能;財運很差,終生勞苦少成少得,晚年有難以預測的災厄。夫妻感情難偕,家運方面,亦多見不幸情形只怕中途孤雁紛飛。健康注意腦神經、筋骨肢體、肺、外傷事故。"},new TdrgModel{Td="木金火",Jx= "兇", JxDetails="★基礎不穩,成功運亦不佳。內心多有熬煎,容易罹患神經衰弱及呼吸器官的病疾。"},new TdrgModel{Td="木金土",Jx= "兇", JxDetails="★如果加倍努力,亦可得成功。此格者,容易身心過勞而遭遇不幸的病難,多有肝病、胃病。"},new TdrgModel{Td="木金金",Jx= "兇", JxDetails="★個性頑強,與人不和。容易孤獨、遭難。家庭易生離散。"},new TdrgModel{Td="木金水",Jx= "兇", JxDetails="★經常不安。容易有急變之事,有腦溢血或其它之病難。"},new TdrgModel{Td="木水木",Jx= "吉", JxDetails="★喜歡幫助他人,能成功。"},new TdrgModel{Td="木水火",Jx= "兇", JxDetails="★能成功,但恐不能持久。易生急變及病患,有心臟或腦部之病災。"},new TdrgModel{Td="木水土",Jx= "兇", JxDetails="★一旦成功,即會崩潰。有災難、突變與病難之可能性。"},new TdrgModel{Td="木水金",Jx= "兇", JxDetails="★可得成功。但,容易有腦部的病疾。"},new TdrgModel{Td="木水水",Jx= "中吉",JxDetails="★有成功的機會。但,容易有破亂及病難。假如數理多帶吉數者,則可長壽、富豪"},new TdrgModel{Td="火木木",Jx= "吉", JxDetails="★勤儉。有生機,境遇安泰,能得長壽享福。"},new TdrgModel{Td="火木火",Jx= "吉", JxDetails="★基礎穩固,順利發展。身心健康,能得長壽。喜歡幫助他人;但,容易受人利用。"},new TdrgModel{Td="火木土",Jx= "吉", JxDetails="★有進取心則成功富貴。基礎穩固,身心健全,能得長壽。"},new TdrgModel{Td="火木金",Jx= "兇", JxDetails="★一成功,即多變。耐力不足。易見身心過於勞累,有腦部及胸部之病疾。"},new TdrgModel{Td="火木水",Jx= "兇", JxDetails="★為人機智。此格者,家庭易生雜亂,有急變的災難。"},new TdrgModel{Td="火火木",Jx= "吉", JxDetails="★一帆風順。基礎穩固,身心健全,長壽享福。但,須節制色慾。"},new TdrgModel{Td="火火火",Jx= "中吉",JxDetails="★雖然有進展的機會,但因基礎不穩且缺乏耐力,所以易成易敗。要注意心臟及血管方面的健康"},new TdrgModel{Td="火火土",Jx= "中吉",JxDetails="★可成功。但因缺乏耐力,易生分離作用。假若能忍柔當事,則可保持吉祥"},new TdrgModel{Td="火火金",Jx= "兇", JxDetails="★身心過勞。故,容易罹患腦部及呼吸系統的病疾。"},new TdrgModel{Td="火火水",Jx= "兇", JxDetails="★易生意外的兇厄。有腦溢血或心臟麻痺之病災。"},new TdrgModel{Td="火土木",Jx= "兇", JxDetails="★依靠祖上餘德或長輩的提拔,而得成功發展。然而,個人之基礎多見不穩固。容易有腹部、胃腸方面之病疾。"},new TdrgModel{Td="火土火",Jx= "吉", JxDetails="★能得長輩提拔,而發展成功。身心健康,長壽享福。"},new TdrgModel{Td="火土土",Jx= "吉", JxDetails="★受長輩栽培而向上發展。境遇安泰,身心健全,長壽享福。"},new TdrgModel{Td="火土金",Jx= "吉", JxDetails="★可發展成功。不過,有消極的傾向。容易身心過勞;但,總能安穩的生活。"},new TdrgModel{Td="火土水",Jx= "兇", JxDetails="★可成功於一時。但是,有急變或病難而致死的情形。"},new TdrgModel{Td="火金木",Jx= "兇", JxDetails="★遭受壓抑,難以成功。此格者,須特別注意呼吸系統之病災,恐發狂致死。"},new TdrgModel{Td="火金火",Jx= "兇", JxDetails="★基礎不穩。容易罹患腦部與肺部的病疾,有急變的兇厄。"},new TdrgModel{Td="火金土",Jx= "兇", JxDetails="★多見煩惱,身心過勞。容易產生腦部及肺部的病疾。"},new TdrgModel{Td="火金金",Jx= "兇", JxDetails="★容易陷於孤獨的情形。容易有腦部與肺部的病疾。"},new TdrgModel{Td="火金水",Jx= "兇", JxDetails="★成功運不能伸張。容易罹患腦溢血或心臟麻痺的病疾。並,防急難情形。"},new TdrgModel{Td="火水木",Jx= "兇", JxDetails="★易生困難。有急變不測之禍。"},new TdrgModel{Td="火水火",Jx= "兇", JxDetails="★易生急變、災禍、死亡。多災多難,有自殺之慮。"},new TdrgModel{Td="火水土",Jx= "兇", JxDetails="★無法伸張,常見苦悶與煩惱。病弱而短壽。"},new TdrgModel{Td="火水金",Jx= "兇", JxDetails="★難以發展。容易有病痛,多災多難。"},new TdrgModel{Td="火水水",Jx= "兇", JxDetails="★難以成功。多困苦,多災多難。"},new TdrgModel{Td="土木木",Jx= "兇", JxDetails="★多有苦悶與煩惱。晚年稍可平安。"},new TdrgModel{Td="土木火",Jx= "中吉",JxDetails="★身心多苦悶。只有數理很好的情況下,才能平安。"},new TdrgModel{Td="土木土",Jx= "兇", JxDetails="★常感苦悶。有神經衰弱或其它病難。"},new TdrgModel{Td="土木金",Jx= "兇", JxDetails="★日常不安。有神經衰弱及呼吸器官的病疾。"},new TdrgModel{Td="土木水",Jx= "兇", JxDetails="★流轉離難,多病難。有急變的災厄而損失生命與財產。"},new TdrgModel{Td="土火木",Jx= "中吉",JxDetails="★數理吉,則身心平安能得長壽幸福。若數理兇,則有腦病之慮。"},new TdrgModel{Td="土火火",Jx= "吉", JxDetails="★若能柔忍當事,可得成功;且,足以揚名。"},new TdrgModel{Td="土火土",Jx= "吉", JxDetails="★飛黃騰達。基礎穩固而安泰,身心健全,長壽享福。"},new TdrgModel{Td="土火金",Jx= "兇", JxDetails="★身心勞病。基礎不穩,家庭不幸。"},new TdrgModel{Td="土火水",Jx= "兇", JxDetails="★基礎不穩。易生急變,易生災厄。"},new TdrgModel{Td="土土木",Jx= "兇", JxDetails="★基礎不穩,易生變動。容易罹患腹部、胃腸、神經衰弱等病疾。"},new TdrgModel{Td="土土火",Jx= "吉", JxDetails="★名利雙收。基礎穩固,長壽享福。"},new TdrgModel{Td="土土土",Jx= "中吉",JxDetails="★可以成功、平安。但,假如數理多帶兇數者,則有不足與災難;婦女則不貞。"},new TdrgModel{Td="土土金",Jx= "吉", JxDetails="★成功發展。身心健全,長壽享福。"},new TdrgModel{Td="土土水",Jx= "兇", JxDetails="★基礎不穩。容易崩潰與失敗。有急禍而致失財。"},new TdrgModel{Td="土金木",Jx= "兇", JxDetails="★基礎不穩。有腦病與意外的災難。男命則剋妻與子。"},new TdrgModel{Td="土金火",Jx= "兇", JxDetails="★境遇不安。易生腦病與肺病。家庭不睦。"},new TdrgModel{Td="土金土",Jx= "吉", JxDetails="★成功發展,境遇安泰。身心健和,能得長壽享福。"},new TdrgModel{Td="土金金",Jx= "吉", JxDetails="★名利雙收。但,性情剛強而與人不睦。假如能和氣待人,則可成功。"},new TdrgModel{Td="土金水",Jx= "中吉",JxDetails="★數理吉,可得平安。數理兇,則多悲運。"},new TdrgModel{Td="土水木",Jx= "兇", JxDetails="★徒勞無功。多病弱,有短命之慮。"},new TdrgModel{Td="土水火",Jx= "兇", JxDetails="★多破亂,有失財或失命之慮。男命剋妻子。"},new TdrgModel{Td="土水土",Jx= "兇", JxDetails="★境遇不安,徒勞無功。容易有腦溢血或心臟麻痺的病疾。"},new TdrgModel{Td="土水金",Jx= "兇", JxDetails="★心理有不滿現狀的激動情緒,使得心神不安,容易興風作浪。一生多見病災。"},new TdrgModel{Td="土水水",Jx= "兇", JxDetails="★難伸展。多病難,家庭不和。"},new TdrgModel{Td="金木木",Jx= "兇", JxDetails="★難得成功。容易罹患神經衰弱或半身不遂。"},new TdrgModel{Td="金木火",Jx= "兇", JxDetails="★多見中途而廢,難受提拔。容易罹患腦病握神經衰弱的病疾。"},new TdrgModel{Td="金木土",Jx= "兇", JxDetails="★無法與人和睦相處。身心過勞而容易罹患神經衰弱的病疾。"},new TdrgModel{Td="金木金",Jx= "兇", JxDetails="★上下夾攻的形勢,造成孤立無援的情形。多受迫害,坐立不安。有腦部及胸部的災禍。"},new TdrgModel{Td="金木水",Jx= "兇", JxDetails="★早年失敗,晚年則漸入佳境。本身無多大發展;但,子孫則可使家業中興。"},new TdrgModel{Td="金火木",Jx= "兇", JxDetails="★難得發展,一籌莫展。容易罹患腦部及肺部的病痛。"},new TdrgModel{Td="金火火",Jx= "兇", JxDetails="★心理不滿現狀。中年有變化。容易罹患腦部及肺部的病痛。"},new TdrgModel{Td="金火土",Jx= "兇", JxDetails="★不滿現狀而陷入苦悶之中。有腦病。"},new TdrgModel{Td="金火金",Jx= "兇", JxDetails="★身心過勞,妻離子散。易罹患肺病。"},new TdrgModel{Td="金火水",Jx= "兇", JxDetails="★上下不和,難以成長,終形成孤立無援的窘境。容易罹患腦溢血或心臟麻痺的病疾。"},new TdrgModel{Td="金土木",Jx= "兇", JxDetails="★基礎不穩,易生變動。有胃腸及肝臟方面的病疾。"},new TdrgModel{Td="金土火",Jx= "吉", JxDetails="★順利發展,名利雙收。"},new TdrgModel{Td="金土土",Jx= "吉", JxDetails="★順利進展而成功,名利雙收。身心健全,長壽享福。"},new TdrgModel{Td="金土金",Jx= "吉", JxDetails="★喜歡幫助他人,可順利成功。若能節制色慾,則能健壯而福壽雙全。"},new TdrgModel{Td="金土水",Jx= "兇", JxDetails="★基礎不穩,難得成功。容易罹患腎臟病疾。女命則多見子宮炎"},new TdrgModel{Td="金金木",Jx= "兇", JxDetails="★性情過剛,不易與人和睦相處,以致常與人爭是論非。健康方面則有車禍之厄,並防半身不遂之大災難。"},new TdrgModel{Td="金金火",Jx= "兇", JxDetails="★身心過勞。容易有腦溢血或肺疾。多災厄。"},new TdrgModel{Td="金金土",Jx= "吉", JxDetails="★身心健全。能和氣待人,則可成功。"},new TdrgModel{Td="金金金",Jx= "兇", JxDetails="★性情過剛,不易與人和睦相處,致常與人有口舌之爭,造成人際關係的不佳。家庭多雜亂。"},new TdrgModel{Td="金金水",Jx= "兇", JxDetails="★性情頑固,與人不和,而造成事業不順。有急變的災厄。"},new TdrgModel{Td="金水木",Jx= "兇", JxDetails="★雖能成功;家庭多不幸。多病厄。"},new TdrgModel{Td="金水火",Jx= "兇", JxDetails="★雖能成功;但,基礎不穩,有急變之災厄。"},new TdrgModel{Td="金水土",Jx= "兇", JxDetails="★性情憂悶,難以成功。有急變災厄。"},new TdrgModel{Td="金水金",Jx= "吉", JxDetails="★假如數理多帶吉數者,可被愛戴而引薦成功。假如數理多帶兇數者,有急變的災厄。"},new TdrgModel{Td="金水水",Jx= "兇", JxDetails="★若得提拔,也能成功。但是,大部份是流落異鄉,且有急變的災厄。"},new TdrgModel{Td="水木木",Jx= "吉", JxDetails="★能得長輩引進而順利發展,基礎安穩,身心健全,繁榮昌盛。長壽享福,家業隆昌。"},new TdrgModel{Td="水木火",Jx= "兇", JxDetails="★有成功運和發達運。但,天格與地格的水火相剋,所以家庭常有不祥的事情發生,有不幸和招致災禍的可能。"},new TdrgModel{Td="水木土",Jx= "吉", JxDetails="★能得長輩的提拔,順利成功發展。基礎運如立磐石之上;若更能堅忍,則可順利安泰。"},new TdrgModel{Td="水木金",Jx= "兇", JxDetails="★可以得到發展,成功運尚佳。防境遇不穩,生有變動,致迫害臨身。身心過勞,容易罹患肝病或防外傷。"},new TdrgModel{Td="水木水",Jx= "兇", JxDetails="★順利發展的成功運,防性情飄忽不定,行動輕浮乃致失敗。困苦勞心,有變動、病難之慮。"},new TdrgModel{Td="水火木",Jx= "兇", JxDetails="★成運運易見受外在環境壓抑而受挫。防突發性之災禍、困難,容易罹患腦溢血或心臟麻痺的病疾。"},new TdrgModel{Td="水火火",Jx= "兇", JxDetails="★遭受壓抑,不能有所伸展,難以成功。有急變的災禍或其他的不祥事。"},new TdrgModel{Td="水火土",Jx= "兇", JxDetails="★財來財去,力不從心。家庭分離,不和睦。容易發生急變之事而短命。"},new TdrgModel{Td="水火金",Jx= "兇", JxDetails="★與人難相處,身心易見過勞。多災厄。"},new TdrgModel{Td="水火水",Jx= "兇", JxDetails="★孤力無援。多災厄。容易罹患腦溢血或心臟麻痺的病疾。"},new TdrgModel{Td="水土木",Jx= "兇", JxDetails="★做事多受阻礙,難以成功。容易罹患胃腸或肺部的病疾。"},new TdrgModel{Td="水土火",Jx= "兇", JxDetails="★基礎運健全,可保平安。但是,家庭中常有明爭暗鬥的事情發生。"},new TdrgModel{Td="水土土",Jx= "吉", JxDetails="★穩重,能得平安。"},new TdrgModel{Td="水土金",Jx= "中吉",JxDetails="★年輕時較消極。中年而後,漸得進展,安定吉祥"},new TdrgModel{Td="水土水",Jx= "兇", JxDetails="★做事多阻礙。性情頑固。有急變的災厄,容易罹患胃病或腎臟方面的病疾。"},new TdrgModel{Td="水金木",Jx= "兇", JxDetails="★基礎不穩,常有變動。有外傷之慮。"},new TdrgModel{Td="水金火",Jx= "兇", JxDetails="★基礎不穩。容易過勞,而致肺病。有急變或急死之慮。"},new TdrgModel{Td="水金土",Jx= "吉", JxDetails="★順調進展,達成目的。基礎平穩,身心健全。長壽,享福。"},new TdrgModel{Td="水金金",Jx= "吉", JxDetails="★可向上發展,得到成功。有勇氣。"},new TdrgModel{Td="水金水",Jx= "兇", JxDetails="★喜歡幫助他人,而自己受累。容易被色情所牽累。"},new TdrgModel{Td="水水木",Jx= "兇", JxDetails="★性情放蕩。容易產生急變的災厄。"},new TdrgModel{Td="水水火",Jx= "兇", JxDetails="★飄浮不定乃致失敗。有急變的災厄。"},new TdrgModel{Td="水水土",Jx= "兇", JxDetails="★時常變化,境遇不穩。有急變災厄。"},new TdrgModel{Td="水水金",Jx= "兇", JxDetails="★自我心過強。好動而不知自我控制,終致失敗,病弱,流離。"},new TdrgModel{Td="水水水",Jx= "兇", JxDetails="★病弱而短壽。流離失所,行為不檢。"}};private LuozhuangNameClass myName;public LuozhuangNameClass getNameClass(){return myName;}public JavaLuozhuangtestnameClass(String name){myName = new LuozhuangNameClass(name);int[] nameint = myName.getNameliborder();for (int i = 0; i < nameint.Length; i++){if (nameint[i] == -1){myName = null;//throw new IllegalArgumentException("沒有收錄該漢字");}}}public TdrgModel getwuxji(){//天地人三才格String TDR = myName.getNameWX(myName.getNamesky()) + myName.getNameWX(myName.getNameearth()) + myName.getNameWX(myName.getNamepeople());foreach (var item in arrayTDRG){var panbitemp = item.Td;if (panbitemp == TDR){return item;}}//for (int i = 0; i < arrayTDRG.Length; i++)//{//var panbitemp = arrayTDRG[i][0];//if (panbitemp == (TDR))//{//return arrayTDRG[i];//}//}return null;}public ArraytotalModel gettotalnameji(int number){if (number > arraytotal.Count || number < 1){return null;}return arraytotal.FirstOrDefault(c => c.Index == number.ToString());//return arraytotal[number - 1];}public string testname(){var str = "";Luozhuangnamewuxing myLuozhuangnamewuxing = new Luozhuangnamewuxing();int[] temp = myLuozhuangnamewuxing.getnameliborder(myName.getName());int[] wuxing = myLuozhuangnamewuxing.getnameWX(temp);int[] BH = myLuozhuangnamewuxing.getnameBH(temp);str += "" + (myName.getName() + "的五行");str += "" + (myLuozhuangnamewuxing.getnameWXarray(wuxing).ToJson());str += "" + (myName.getName() + "的筆畫");str += "" + (BH.ToJson());str += "" + (myName.getName() + "的天格");str += "" + (getMyName().getNamesky());str += "" + (myName.getNameWX(getMyName().getNamesky()));str += "" + (myName.getName() + "的地格");str += "" + (getMyName().getNameearth());str += "" + (myName.getNameWX(getMyName().getNameearth()));str += "" + (myName.getName() + "的人格");str += "" + (getMyName().getNamepeople());str += "" + (myName.getNameWX(getMyName().getNamepeople()));str += "" + (myName.getName() + "的外格");str += "" + (getMyName().getNameout());str += "" + (myName.getNameWX(getMyName().getNameout()));str += "" + ("此人總筆畫");str += "" + ((myName.getTotal()));str += "" + ("說明:字的筆劃以《康熙字典》為準,康熙筆劃計算方法與簡體筆劃有所區別,不能以現在計算筆劃的方法去計算。為保證本站提供的測算內容精準,編輯人員花費了大量時間和精力與《康熙字典》原版進行核對。如果您發現錯誤,敬請及時與我們聯系,謝謝!");str += "" + ("天格的解析:天格數是先祖留傳下來的,其數理對人影響不大。 什么是天格?\n"+ "什么是天格:天格是由您的姓決定的,姓是祖輩流傳下來的。它的數理對人生并無直接的影響。所以,天格的吉兇數理不用重視。在測名字的時候,也會有天格的數理吉兇解釋,那是對這個數字的解釋,本身無太大意義。");//myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getNamesky()).ToJson());str += "" + (gettotalnameji(myName.getNamesky()).ToJson());str += "" + ("人格的解析:人格數又稱主運,是姓名的中心點,影響人一生的命運。 什么是人格?\n"+ "什么是人格:人格非常重要,是這個名字的中心、精髓!人格的吉兇,對人的影響很大,就如四柱當中的日柱一樣,是判斷名字好壞吉兇的一個標準。");//myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getNamepeople()).ToJson());str += "" + (gettotalnameji(myName.getNamepeople()).ToJson());str += "" + ("地格的解析:地格數又稱前運,影響人中年(36歲)以前的活動力。 什么是地格?\n"+ "什么是地格:地格和人格有密切的關系,主要影響人年輕時的命運,地格也比較重要。其數理吉兇,也代表與子女、部屬、晚輩的關系。");//myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getNameearth()).ToJson());str += "" + (gettotalnameji(myName.getNameearth()).ToJson());str += "" + ("外格的解析:外格又稱變格,影響人的社交能力、智慧等。 什么是外格?\n"+ "什么是外格:外格通常指和社會上的關系的融洽程度,在實際預測中其準確度較低,對人生的作用不是很大,在專業預測當中也很少去用。外格的數理不用重視。");//myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getNameout()).ToJson());str += "" + (gettotalnameji(myName.getNameout()).ToJson());str += "" + ("總格的解析:總格又稱后運,影響人中年(36歲)以后的命運。 什么是總格?\n"+ "什么是總格:判斷名字的吉兇,一般先看總格,再看人格。總格對人的晚運和一生運勢均有影響。總格就如植物的根,根好則枝繁葉茂。因此,名字吉兇一定要看總格。");//myLuozhuangnamewuxing.pringst(gettotalnameji(myName.getTotal()).ToJson());str += "" + (gettotalnameji(myName.getTotal()).ToJson());str += "" + ("此人天地人三才格參考");//myLuozhuangnamewuxing.pringst(getwuxji().ToJson().ToJson());str += "" + (getwuxji().ToJson().ToJson());return str;}/** * @param args the command line arguments */public static void main(String[] args){JavaLuozhuangtestnameClass myJavaLuozhuangtestname = new JavaLuozhuangtestnameClass("羅莊");myJavaLuozhuangtestname.testname();}/** * @return the myName */public LuozhuangNameClass getMyName(){return myName;}/**漢字五行筆畫庫 * * @author luozhuang 大師♂羅莊 */}/* * To change this template, choose Tools | Templates * and open the template in the editor. */public class BhWxLib{private List libs = new List();/** * 以數理來劃分五行列表如下: 數始于1而終于10。按傳統的五行理論來劃分,則: ??? 以1、2為木,1為陽木,2為陰木。 ??? * 以3、4為火,3為陽火,4為陰火。 ??? 以5、6為土,5為陽土,6為陰土。 ??? 以7、8為金,7為陽金,8為陰金。 ??? * 以9、10為水,9為陽水,10為陰水。 */public enum wuxing{木,//0火,// 1土,// 2金,//3水,//4}/** * 姓名五行生克法: 在數理中包含有五行生克的原理,故以數理來剖析姓名時,必須把各數理所屬的五行要素辨認清楚。 * 在辯認五行時,只計l——10的數,超過10的數,就去掉十份數而取其個位數, 這樣仍還原成l——10之間的數;如果個位數為0,則計為10即可。 * * @param paramInt * @return */public int get_wx_idx(int paramInt){if (paramInt > 10){paramInt = paramInt % 10;}switch (paramInt){default:return -1;case 1:case 2:return 0;case 3:case 4:return 1;case 5:case 6:return 2;case 7:case 8:return 3;case 0:case 9:return 4;}}public BhWxLib(){this.libs.Add(new MetaLibItem(1, 2, "一乙"));this.libs.Add(new MetaLibItem(2, 0, "九幾"));this.libs.Add(new MetaLibItem(2, 1, "二丁了力乃刁"));this.libs.Add(new MetaLibItem(2, 2, "又"));this.libs.Add(new MetaLibItem(2, 3, "七人十入刀"));this.libs.Add(new MetaLibItem(2, 4, "卜八乜"));this.libs.Add(new MetaLibItem(3, 0, "久工口乞干弓廣"));this.libs.Add(new MetaLibItem(3, 1, "大女巳孒"));this.libs.Add(new MetaLibItem(3, 2, "也于丸己土山個"));this.libs.Add(new MetaLibItem(3, 3, "三小千士川上才寸刃夕尸"));this.libs.Add(new MetaLibItem(3, 4, "萬下亡凡子"));this.libs.Add(new MetaLibItem(4, 0, "介牛五公月元及孔今亢卞欠犬斤牙勾勻木氣"));this.libs.Add(new MetaLibItem(4, 1, "天六中日丑斗內太屯丹井弔支止之午尺火從豐"));this.libs.Add(new MetaLibItem(4, 2, "尹允王友引尤厄曰毋切予"));this.libs.Add(new MetaLibItem(4, 3, "仁升氏心什仇手仍少殳戈爪雙"));this.libs.Add(new MetaLibItem(4, 4, "夫匹巴文方互分比勿反歹戶毛父幻不仆化云毋壬水片幣仆"));this.libs.Add(new MetaLibItem(5, 0, "古加卉玉甲可功瓜甘丘句外去巧札術本卯未"));this.libs.Add(new MetaLibItem(5, 1, "代旦只冬立田叮他令召臺尼奴冉左丙另嘆"));this.libs.Add(new MetaLibItem(5, 2, "右央由用永以仔瓦幼葉戊"));this.libs.Add(new MetaLibItem(5, 3, "生史仙占冊申仕四世市司出仟且示石失尻刊正主矢"));this.libs.Add(new MetaLibItem(5, 4, "民弘布平皮丕付玄弁白必目包禾半兄北弗末皿匆母穴疋氷夯"));this.libs.Add(new MetaLibItem(6, 0, "交旭價吉仰曲共伎伉企各戎機考件朽竹朵匡朱"));this.libs.Add(new MetaLibItem(6, 1, "亙打老至自尖仲燈匠多耳宅蟲同年劣全光弛兆旨肉禮"));this.libs.Add(new MetaLibItem(6, 2, "亦宇夷因衣有羊伊安圭伍艮地吐圳充羽戌灰優"));this.libs.Add(new MetaLibItem(6, 3, "字次守如在而西舟再存夙色早式先沖丞吏寺旬死莊此任州臣曳列舌眾"));this.libs.Add(new MetaLibItem(6, 4, "好休伏行仿合刑血名后回亥妃百米冰并牟伐牝兇兇危汀印收向后"));this.libs.Add(new MetaLibItem(7, 0, "言見見更克角角君吟吾旱改谷究岑我估妓局劫告桿攻卻忌困杖杜吳吳杌肖村材杞何杏啟"));this.libs.Add(new MetaLibItem(7, 1, "良甸男佟里牢廷呂呂住志呈佃伶灶體灸利足町李豆吞弄努低彤但妥卵弟佗求杉巫免采鹵聽"));this.libs.Add(new MetaLibItem(7, 2, "邑佑完位禿禿役余似延均坑岐冶坍辰墳坊坂牡醫"));this.libs.Add(new MetaLibItem(7, 3, "成助車車作伸身孜佐秀伺坐束宋序赤妝妝私妊壯壯串些吹聲忍走辛巡初吢佘系兌酉判系"));this.libs.Add(new MetaLibItem(7, 4, "希孚孝宏妙伴甫伯兵尾呆步每妣亨貝貝別妤況形忘佛忙含妨否罕坔江戒池汝冷尨妍"));this.libs.Add(new MetaLibItem(8, 0, "狂抗技快玖佳供佶枝析姑炆炘宜奇欣居岳固其果劻季卷斧昂糾糾京空孤官肯券屈臥臥乖穹祁林杵杻東東竺枝具佼杼松羌析杷杭板杯枚昏忽柿"));this.libs.Add(new MetaLibItem(8, 1, "兩兩肋投侗佻侍侈例岱征妮姐典卓直來來到長長定知忠制爭爭冽帖店忝底念的妾弩乳政徂戽折狄決昆易炊咎帑炎旻罔糴昊隸麗爐"));this.libs.Add(new MetaLibItem(8, 2, "抑依侑往夜委奄昀宛旺于於亞亞盂艾坤巖坦坡坪憂嶺"));this.libs.Add(new MetaLibItem(8, 3, "忱沖抄侃使孥姍姓昇尚宗社受虱事承始昌宙舍青叔昔取剎刷兒兒妻所憑垂刺妬社祀姒金庚刻周卒"));this.libs.Add(new MetaLibItem(8, 4, "扶沐汾版拋沒汶侔佩彼妹武朋孟秉命享和府門門奉明岸沛房放并並味幸咊或帛服氓効弦物虎盲呼非卹阜把昊汽沅岡卦沂汲沚宓沃雨協協汪沁沙沈牧狀狀冼廟奮彌懷"));this.libs.Add(new MetaLibItem(9, 0, "俠俠俄拘拒柑柯科紀紀祈皆軍軍彥彥契姱羿禺軌軌建癸冠客玩肝哄架界勁勁姜剋看竿故急姣虹姬斫肖柱柳相柘柴芒柄柏面"));this.libs.Add(new MetaLibItem(9, 1, "侶侶俊待律沺招抽拐紂紂祉重貞貞炤昭亮耐帝南亭盾段泰奏炭致突訂訂怠怒赴柬怨昱勅姞祉映歪炳炫厘類鄧"));this.libs.Add(new MetaLibItem(9, 2, "衩耶押約約怡威勇音要禹囿屋畏姻哀幽宥昶韋韋姚奎垣型盆"));this.libs.Add(new MetaLibItem(9, 3, "衫信俗促侵咨拆拙秋是首則則哉前省思帥帥宣敘頁頁俞春星食性砂削查柔施姿室昨甚牲峙俟昝厙厙枯怪度姹姝"));this.libs.Add(new MetaLibItem(9, 4, "侯保便係衍後河法泊波泓泯抱拍秒紅紅飛飛厚屏香美風風品盈巷盼盃勃眇眉炫昧皇表封負負某扁玫毗甭宦羑哈咸奔狐泔計計炬染治注沼拜泥沮油況沿泳泑泱泉憲"));this.libs.Add(new MetaLibItem(10, 0, "兼俱紜紜矩倚徑徑屐桂格根栓娛娛娟粉家起記記肩蕓衿珈括尅恭庫庫豈哥拳躬笈氣缺虔貢貢鬼恢骨高耕衾皋奚芝桃桐株芷芯桑栗桌核校桓芬芙芽芳花笏倏樣蘆"));this.libs.Add(new MetaLibItem(10, 1, "恬衲凍凍納納倫倫倒倬值徒秩娣娜娘娌唐朔烈哲庭珍凌玲玳朕晁展晉晉恕料旃島島特畜耄討討留恥疾媧旅斗鬥耿晃煙恣秦祝芮夏烜烘慮敵達積燭璽黨戀欒"));this.libs.Add(new MetaLibItem(10, 2, "準容員員祐晏益肴恩殷宴案翁袁煙盎烏烏育個原峽峽峨砧軒軒城埋破砲"));this.libs.Add(new MetaLibItem(10, 3, "純純紙紙修倩借徐持娠時時宰孫孫差峻宸財財拾狩指珊師師倉倉釗釗弱素書書租乘射席殉祠座息殊栽神笑訕訕針針閃閃酌索烝隼眞真邛倪剛剛宮宮罡祖晁釘釘祚剖曹齋聳遷蠶"));this.libs.Add(new MetaLibItem(10, 4, "娑紋紋紡紡紛紛倍倖候俵俸俯倣秘秤娥派洽肥肪恨珀恒圃訓訓峰畝效埋畔旁冥併臭蚊豹配釜馬馬勉峰航害眠病疲耘耗恤祜洸洨紐紐洲洞洛流洪洋活紗紗洗津灑酒洼潔"));this.libs.Add(new MetaLibItem(11, 0, "卿救規規頃頃健偶偕御械梧悍悟娸康國國教基崑啟啟乾區區堅堅苦珪寄崔晤近貫貫眼毬皎眷研竟翊袈寇圈茍邢梯苕笠笞笛救苡英苑圉彬梢梓桶若許許笙笥苫啟梟梟梗梅茂符苻茅蓋"));this.libs.Add(new MetaLibItem(11, 1, "胎振崙朗偵偵條從埜累將將章翎梨帶帶那動動執執犁張張敕斛頂頂鹿梁悌略粒聊豚袋狷軟軟聆羚帳帳聃婁婁鹵烷烽戚珣晟襪斷離"));this.libs.Add(new MetaLibItem(11, 2, "浴涎胃偃偉偉悠移婉英胡庸寅唯庵尉欲迎窕眺翌野異異敖域基崎堀堂崩鳥鳥崢培崩運"));this.libs.Add(new MetaLibItem(11, 3, "袖紳紳組組紹紹細細終終側側得匙處處焌參參紫專專晨祥船常崧崇趾彩釧唱勘阡商問問寂庶彫旌巢宿悉旋敘敘敍斜爽珠悅率產產祭窓粗羞設設船釵釵責責馗赦雀訟訟紮絕絕胙胥邢釣釣眾紬書書副珮釩剩"));this.libs.Add(new MetaLibItem(11, 4, "袍胞浦浲海浮斌絆絆培偏徘貨貨婚婦婦胖娬背麥麥習習魚魚匾望望敏凰苗婆務務密閈闬彪敗敗晦毫捕晚粕訪訪曼邦販販被麻票班訛訛悖邠畢畢扈浩涓匏浪涕涂浴涎浚消浸浙雪涉習習范還"));this.libs.Add(new MetaLibItem(12, 0, "雁絖給給絞絞結結絡絡草棋椅棍堦迭掘掛球荃皖捲琹稀期景開開皓堯堯蛟敢傑幾嵌貴貴凱凱欺雅割寓筐棨喬喬窘街強款硬邱棲統統棟棟植筌答茶筑筒棠椒絳絳筳庾茹棧棧森茜茸筍策荏茱最桌荀棚棒棉棼筏荒阮筑繭"));this.libs.Add(new MetaLibItem(12, 1, "盜盜診診場場琉捷探理瑯涼涼程敦婷喨軼貼貼登智軸軸痛勞勞量能單單粧短巽凌淩衕閏軫軫循幅迢就尋尋媛邰屠媧硫煬煬晴晶焦焙惇焱欻證"));this.libs.Add(new MetaLibItem(12, 2, "詠惡惡圍圍為為翔翕蛙黑奠壹貽貽堰越惟勛黃黃硯硯堤堪嵐嵐堡費費郵陰陽"));this.libs.Add(new MetaLibItem(12, 3, "絲絲絨絨鈔鈔絢絢註詞詞詔詔訴訴授措推琇凈淨稅稍竦創創須須絮殘殘替尊窗疎勝勝茲黍象裁斯視視超然曾殖掌甦貳貳舜甥善喻順順舒剩盛竣脂情惜散奢棗棗粟述邵喪喪犀鈞鈞欽欽割覘覘問問辜鈕鈕鈍鈍鈉鈉接粟童剴剴甯朝堵鈄鈄壺壺鄒"));this.libs.Add(new MetaLibItem(12, 4, "悶悶馮馮評評迫排虛防媚發發粥弼賁賁徨喜惠斐閒閔閔帽報報備備蛤買買雄寒云雲富復賀賀普貿貿扉悲喚喚傍脈脈博無無雰傅邯邳邴邶彭猛番淇涯淦混頇頇荊現現淋添淡淘幅淹液涴淑清深淞項項淵淵獵蠻"));this.libs.Add(new MetaLibItem(13, 0, "琴絹絹經經傾傾楷裙揭暇睽誇勤祺詰詰莞嫁廉獻羣舅跪義義感禁解業業鼓極極筠港減減琦琪琨郊窟頌頌愚干幹靴敬畸靳楠莉莨琳莒荻筱椰楊楊預預蛾媵莎莠椿楫榆莧莧莘楓楓楣莆煢煢莽"));this.libs.Add(new MetaLibItem(13, 1, "糧傳傳楠廊提稔稜暖睦煜煉煉脫煖當當鼎跡督塔農農雉殿追琢退電電虞馳馳煎裹頓頓路寗零詹媸祿祿艇照碖郅僂煬煬揚揚旸暘煙煙煒煒琰徭煊煥煥煤煇煌逄毓"));this.libs.Add(new MetaLibItem(13, 2, "筳傭阿猶猶握稚暗話話衙矮意碗奧雍附琬愛愛裔圓圓爺爺飲飲園園嫈惲惲塊塊圣聖碑"));this.libs.Add(new MetaLibItem(13, 3, "辭送迺繡愉債債催羨捷暄詩詩詢詢裕詳詳試試荘馴馴傷傷新勢勢歲歲歆蜀想斟資資琮琛楚軾軾肆蜃裟載載靖嗣暑裝鼠愈剿凖愁酬勣郄禽睢鉅鈺鈺飭飭鈴鈴鉦鉦鈿鈿邾鉛鉛絺觸"));this.libs.Add(new MetaLibItem(13, 4, "補補雹綏綏粳鈵缽鉢琵換換揮揮暉暉湍琶聘頒頒號號瓶郁陂惶湣渾渾會會蜂微媽媽鳩鳩盟飯飯較較熙莫裘港媲賈賈涂塗雷湯湯渡湞湞渭游湖湛湶測測渝湘溆湫渠渻郇孵募"));this.libs.Add(new MetaLibItem(14, 0, "綺綺綱綱魁緊緊降誥誥誡誡語語郡菊槐僑僑僥僥偽偽瑟斳赫旗箇輕輕嘉箕歌犒肇愿管疑郟郜兢菱構構戩戩榴榔萊菅榕莞榮榮算嘗嘗箒粽翠箋箋菜菁菑萌幕夢夢榜裴槍槍"));this.libs.Add(new MetaLibItem(14, 1, "盡盡寧寧綠綠綸綸綽綽綾綾通連連逐透誌種種郎菱溜嫩嫡對對團團裳獎獎態態端愷愷彰爾爾塵塵暢暢辣獃嘆嘆歎領領廖臺臺趙趙嫘滕僚搖槍槍榭制製綾綾蠟"));this.libs.Add(new MetaLibItem(14, 2, "維維誕誕溫溫斲瑛瑋瑋瑕頊頊與與嫣境翟碩碩墀"));this.libs.Add(new MetaLibItem(14, 3, "綬綬綜綜慈綢綢造速認認誦誦說說誠誠稱稱僧僖像銜銜閥閥精聚甄飾飾壽壽誓酸賑賑粹實實瑜瑄瑞署察齊齊獅獅綮慎銀銀韶銓銓銅銅瑒玚劃劃臧銘銘郝郤"));this.libs.Add(new MetaLibItem(14, 4, "網網綿綿逢溥誨誨銘銘福僕嫚貌萍窪洼聞聞飼飼颯颯輔輔碧華華飽飽蜜魂鳳鳳熊鳴鳴鼻陌賓賓豪閣閣髦熏閩閩舞滑寡源溪滅滅閣閣嘏溶瑚溢滄滄滋滏溲滇郗滌滌"));this.libs.Add(new MetaLibItem(15, 0, "葵慷慨廣樞樞萼稼儉儉價儀儀鞏課課駕駕毅靠穀郭箴慶慶寬寬嬌嬌誼誼頡頡麫麪駒駒概稽葛樟樓樓稻樑箭豎豎蒂稷樣瑩瑩樊耦萱槽箱葫蔥葆標標模篇筅筅樗賢賢築藥"));this.libs.Add(new MetaLibItem(15, 1, "緞緞緹緹練練董締締緩緩腰徵徹徹德陣陣瑭劉劉諒諒樂樂調調慮彈彈談談層層輪輪暟敵論論進進頫蝶瑯除萳摘暫暫駐駐踐踐質質寮魯魯鼐儋厲厲黎褚逯郯歎糊熱熱僻"));this.libs.Add(new MetaLibItem(15, 2, "嫺億億院閱閱養養逸慰歐歐鞍影頞豌蝴憂蝯葉郵衛衛嶔嫻嫻確確逵增墩磋磁磐"));this.libs.Add(new MetaLibItem(15, 3, "節節緒緒線線鋤鋤銹衝陞升嬋嬋賞賞審審幟幟銳銳熟瑲玱趣賜數數蝕蝕媭諄諄請請靚靚敷辤駟駟劇劇劍劍腸腸摯摯閭閭緘緘鋒鋒鋪鋪劈"));this.libs.Add(new MetaLibItem(15, 4, "編編翩暴範廟魄嬉霈蝦蝠餅餅輝輝慧暮漫摸興興部滹漠漂滿滿墨瞑賣賣輩輩虢醇摩履盤盤賠賠箲蝙賦賦萬漢漢緡緡幣漪滸滸滾漲漲霆滺漁漁演霄漬漬漩震漕褒慕"));this.libs.Add(new MetaLibItem(16, 0, "遇過過褲褲機機橋橋橘諧諧諺諺頰頰黔圜縣縣篤篤器龜龜噲噲蓋蒯蓄蓁麇螢螢蓉穎穎鄂閻閻樹樹蒼蒼冀親親整橫樺樺義義褰蒲"));this.libs.Add(new MetaLibItem(16, 1, "道諮諮遂達錄錄燐積燈燈燑瑾燉燄璋陵陳陳陶螣諦諦臻璉璉賴賴歷曆靛蹄頭頭導導歴龍龍盧盧儔儔璃糖鴦鴦都頹頹駱駱陸陸曉曉璇燃熾熾燒燒熹"));this.libs.Add(new MetaLibItem(16, 2, "遐遊運陰謂謂燕衡鴨鴨餘鴛鴛豫融歙嬴甌甌鄆鄆壇壇壁磨勛勳"));this.libs.Add(new MetaLibItem(16, 3, "錘錘錐錐錫錫錢錢錯錯諭諭縢諸諸輯輯靜嬙醒儒蒨儕儕戰戰叡雕錦錦鋼鋼錡锜鋸鋸謁謁諼諼錚錚錠錠撮赪赬穆"));this.libs.Add(new MetaLibItem(16, 4, "遍熺燁燁潢謀謀陪學學霏奮頷頷縛縛默憲潘蒙鮑鮑潔澆澆潰潰靦靦霍潭潮潤潤澄澂霖寰澍霑霓憤憤"));this.libs.Add(new MetaLibItem(17, 0, "顆謙謙璣璣檢檢嶽懇懇擎擊擊舉舉糠艱艱講講懋罄鞠覬覬賺賺黚矯矯蓮蓮聯聯檀蔣蔚營營蔡蔓篷豁蓬"));this.libs.Add(new MetaLibItem(17, 1, "隊隊績績麋隆赯儡勵勵瞳嬭奶瞭輾輾縱縱螳臨臨螺擂擇擇燧煉煉黛隸襄蔣謄謄燦燦燭燥黏燮繆繆"));this.libs.Add(new MetaLibItem(17, 2, "優應應遠遠壑陽擁擁醖醞嬰嬰鄔鄔嶺磯磯壕"));this.libs.Add(new MetaLibItem(17, 3, "操賽賽鐘鐘齋聲駿駿聳償償縻禪禪糟徽瞬縮縮聰聰總總遜遜鍬鍬謝謝餞餞鮮鮮蹇鄒隋鍵鍵鍋鍋谿鍛鍛鍍鍍氈輿輿賾"));this.libs.Add(new MetaLibItem(17, 4, "鄉鴻鴻繁霞璠璜璟禧賸嬪嬪鎂鎂韓韓濃濃潞褻澤澤彌澹霜"));this.libs.Add(new MetaLibItem(18, 0, "翹翹謹謹繞繞騏騏檻檻擱擱擬璩歸歸瞼瞼簡簡顏顏騎騎鵑鵑黠覲覲魏瞽蕊簪瞿隗鬆獲獲鵠鵠蕭蕭舊舊"));this.libs.Add(new MetaLibItem(18, 1, "燼燼禮斷戴適爵燾燾糧瞻轉轉職職蟲鯉鯉題題釐曜豐燻"));this.libs.Add(new MetaLibItem(18, 2, "隕隕醫謳謳鄢壘礎璧"));this.libs.Add(new MetaLibItem(18, 3, "翼翱雙織織顓顓璨繕繕蟬蟬觴觴鎖鎖穢穢鎗謦聶聶環環闕闕鎮鎮鎚鎚儲儲鎧鎧鎰鎰镕鎔遲遲"));this.libs.Add(new MetaLibItem(18, 4, "繐馥謨謨濱濱濮闖闖覆蹣蹣鞭濤濤濟濟濯濙濕濕雜雜"));this.libs.Add(new MetaLibItem(19, 0, "關關麒攀曠鯨鯨遺遺擷願愿蟻蟻蟹繫薊薊難難簽簽繭薛麴薇麓競競薩薩"));this.libs.Add(new MetaLibItem(19, 1, "譚譚韜韜離璽轍轍贈贈證際際麗類繹繹譔韲鄭鄭鄧蠊龐龐"));this.libs.Add(new MetaLibItem(19, 2, "嬿穩穩"));this.libs.Add(new MetaLibItem(19, 3, "選選繡繡遷顛顛贊贊獸獸禱禱鏘鏘遵疇疇鵲鵲識識辭繩繩鯖鯫鯫譙譙鏡鏡繫鏈鏈镠鏐鏖鏢鏢"));this.libs.Add(new MetaLibItem(19, 4, "鵰譜譜鵬鵬簿繪繪穫羹霪薄獵靡"));this.libs.Add(new MetaLibItem(20, 0, "瓊瓊議議勸勸繼繼覺覺警懸懸艦艦嚴嚴邀犧犧闞闞鄶鄶藏纂籃籃籍籌籌騫騫獻薰麵"));this.libs.Add(new MetaLibItem(20, 1, "齡齡羅羅騰騰贍贍獺獺闡闡朧朧黨竇竇爐耀寶寶飄飄"));this.libs.Add(new MetaLibItem(20, 2, "孆耀礦礦礫礫壤"));this.libs.Add(new MetaLibItem(20, 3, "釋釋鐘鐘馨繻譯譯觸觸黥齣锏鐧鏹鏹鐔鐔鐙鐙"));this.libs.Add(new MetaLibItem(20, 4, "還懷顢顢露"));this.libs.Add(new MetaLibItem(21, 0, "藝藝顧顧齦齦驅驅饒鷄囂囂顥顥藤藥鶯鶯櫻櫻饒饒"));this.libs.Add(new MetaLibItem(21, 1, "躋躋蠟鰨鰨饌饌纏纏"));this.libs.Add(new MetaLibItem(21, 2, "趯蠡譽譽躍躍巍"));this.libs.Add(new MetaLibItem(21, 3, "隨隨鐫鐫續續鐸鐸屬屬鐮鐮鐵鐵鑒鑒"));this.libs.Add(new MetaLibItem(21, 4, "護護鶴鶴轟轟霹辯辯霸黯飜藩瀾瀾灌"));this.libs.Add(new MetaLibItem(22, 0, "權權龢儼儼籠籠蘆鬻藷蘇蘇龔龔"));this.libs.Add(new MetaLibItem(22, 1, "疊疊讀讀攝攝聽躒躒龕龕顫顫贖贖囊覽覽"));this.libs.Add(new MetaLibItem(22, 2, "瓔瓔隱隱懿鬻竊巔巔"));this.libs.Add(new MetaLibItem(22, 3, "襯襯鑄鑄鬚癬癬襲襲鑑"));this.libs.Add(new MetaLibItem(22, 4, "驊驊穰響響鰻鰻歡歡邊邊灃灃霽霽灑"));this.libs.Add(new MetaLibItem(23, 0, "驛驛驗驗蘭蘭籖鱖鱖鷹鷹"));this.libs.Add(new MetaLibItem(23, 1, "蘭蘭戀麟鱗鱗欒顯顯"));this.libs.Add(new MetaLibItem(23, 2, "纓纓巖鑛礦鑢"));this.libs.Add(new MetaLibItem(23, 3, "攢攢霉鑠鑠"));this.libs.Add(new MetaLibItem(23, 4, "囏變變黴霉"));this.libs.Add(new MetaLibItem(24, 0, "贛攪攪醸靄靄"));this.libs.Add(new MetaLibItem(24, 1, "靈靈靂靂鷺鷺籬籬鱣鳣"));this.libs.Add(new MetaLibItem(24, 2, "艷艷鹽鹽罐"));this.libs.Add(new MetaLibItem(24, 3, "鑫蠶"));this.libs.Add(new MetaLibItem(24, 4, "鸂"));this.libs.Add(new MetaLibItem(25, 0, "觀觀纘纘羈羈"));this.libs.Add(new MetaLibItem(25, 2, "叆靉"));this.libs.Add(new MetaLibItem(25, 4, "蠻灝灝酆"));this.libs.Add(new MetaLibItem(26, 0, ""));this.libs.Add(new MetaLibItem(26, 1, "邏邏酈酈"));this.libs.Add(new MetaLibItem(26, 3, "驥驥讚贊"));this.libs.Add(new MetaLibItem(26, 4, "灣灣"));this.libs.Add(new MetaLibItem(27, 1, "驤驤纜纜鑾鑾"));this.libs.Add(new MetaLibItem(27, 3, "鉆鑽鑼鑼"));this.libs.Add(new MetaLibItem(27, 4, "灤灤"));this.libs.Add(new MetaLibItem(28, 0, "戇"));}public int getStringLibs(char item){for (int i = 0; i < libs.Count; i++){if (libs[i].IfStringexist(item)){return i;}}return -1;}public List getLibs(){return this.libs;}}/**取漢字五行筆畫演示 * * @author luozhuang 大師♂羅莊 */public class Luozhuangnamewuxing{public BhWxLib myBhWxLib = new BhWxLib();/** * 取出名字每個字在庫中位置 * * @param name * @return */public int[] getnameliborder(String name){char[] namechararray = name.ToArray();int[] returnarray = new int[namechararray.Length];for (int i = 0; i < namechararray.Length; i++){int order = getnameliborder(namechararray[i]);returnarray[i] = order;}return returnarray;}/** * 取出字在庫中位置 * * @param name * @return */public int getnameliborder(char name){List libs = myBhWxLib.getLibs();int returnorder = -1;returnorder = myBhWxLib.getStringLibs(name);return returnorder;}/** * 取出名字筆畫 * * @param name * @return */public int getnameBH(int name){List libs = myBhWxLib.getLibs();int returnorder = -1;returnorder = libs[name].getBh();return returnorder;}/** * 取出名字五行 * * @param name * @return */public int getnameWX(int name){List libs = myBhWxLib.getLibs();int returnorder = -1;returnorder = libs[name].getWx_indx();return returnorder;}/** * 取出名字筆畫 * * @param name * @return */public int[] getnameBH(int[] name){int[] returnarray = new int[name.Length];for (int i = 0; i < name.Length; i++){returnarray[i] = getnameBH(name[i]);}return returnarray;}/** * 取出名字五行 * * @param name * @return */public int[] getnameWX(int[] name){int[] returnarray = new int[name.Length];for (int i = 0; i < name.Length; i++){returnarray[i] = getnameWX(name[i]);}return returnarray;}/** * 取出名字五行漢字 * * @param name * @return */public String[] getnameWXarray(int[] name){String[] returnarray = new String[name.Length];for (int i = 0; i < name.Length; i++){returnarray[i] = getnameWXnaying(name[i]);}return returnarray;}/** * 取出名字五行漢字 * * @param name * @return */public String getnameWXnaying(int name){switch (name){default:return "無";case 0:return "木";case 1:return "火";case 2:return "土";case 3:return "金";case 4:return "水";}}public String pringst(int[] res){StringBuilder result = new StringBuilder();for (int i = 0; i < res.Length; i++){result.Append(res[i]);result.Append(" ");}result.Append("\n");Console.WriteLine(result);return result.ToString();}public String pringst(String[] res){StringBuilder result = new StringBuilder();for (int i = 0; i < res.Length; i++){result.Append(res[i]);result.Append(" ");}result.Append("\n");Console.WriteLine(result);return result.ToString();}/** * @param args the command line arguments */public static void main(String[] args){Console.WriteLine("五行簡介:\n"+ "\n"+ "中國五行學說認為宇宙萬物,都由金木水火土五種基本物質的運行和變化所構成,所有事物都是隨著這五個要素的盛衰,而使得大自然產生變化,不但影響到人的命運,同時也使宇宙萬物循環不已。\n"+ "\n"+ "其中:\n"+ "“木曰曲直”,意思是木具有生長、升發的特性;\n"+ "“火曰炎上”,是火具有發熱、向上的特性;\n"+ "“土爰稼墻”,是指土具有種植莊稼,生化萬物的特性;\n"+ "“金曰從革”,是金具有肅殺、變革的特性;\n"+ "“水曰潤下”,是水具有滋潤、向下的特性\n"+ "五行相生相克\n"+ "\n"+ "五行相生:金生水,水生木,木生火,火生土,土生金。\n"+ "\n"+ "五行相克:金克木,木克土,土克水,水克火,火克金。 ");Console.WriteLine("中國漢字有那五行?\n"+ "根據中國五行理論,漢字分為金、木、水、火、土共五種五行屬性,每個漢字對應一種五行屬性。");Luozhuangnamewuxing my = new Luozhuangnamewuxing();int[] temp = my.getnameliborder("大師羅莊");int[] wuxing = my.getnameWX(temp);int[] BH = my.getnameBH(temp);Console.WriteLine("大師羅莊的五行");my.pringst(my.getnameWXarray(wuxing));Console.WriteLine("大師羅莊的筆畫");my.pringst(BH);}}public class MetaLibItem{public int Bhs { get; set; }public int Wx { get; set; }public string Str { get; set; }public MetaLibItem(){}public bool IfStringexist(char str){return Str.Contains(str);return false;}internal int getBh(){return Bhs;}internal int getWx_indx(){return Wx;}public MetaLibItem(int bhs, int temp, string str){Bhs = bhs;Wx = temp;Str = str;}}public class TdrgModel{public string Td { get; set; }public string Jx { get; set; }public string JxDetails { get; set; }}public class ArraytotalModel{public string Index { get; set; }public string Jx { get; set; }public string JxDetails { get; set; }}

調用也比較簡單

var jlz = new JavaLuozhuangtestnameClass("羅莊");Response.Write(jlz.testname());Response.End();

以上是這羅半仙java寫的 博客中放出來的 我只是截了個圖 感興趣可以自己去看

下面的是我這邊打印出來的 相同

?

應該還有些缺點 就是字庫不夠,誰有時間可以幫忙把這個字庫在加點 哈哈

?

也不要太認真啊 ,看看就好了。

免責聲明:非本網注明原創的信息,皆為程序自動獲取互聯網,目的在于傳遞更多信息,并不代表本網贊同其觀點和對其真實性負責;如此頁面有侵犯到您的權益,請給站長發送郵件,并提供相關證明(版權證明、身份證正反面、侵權鏈接),站長將在收到郵件12小時內刪除。
kok买球官网-首页 <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <文本链> <文本链> <文本链> <文本链> <文本链> <文本链>