/*
这是一个简单的拼音输入法,只有常用的汉字,输入拼音后,
再输入数字,选择所需要的拼音
*/
#include
#include
#include
#define OUTLEN 1024
#if 1
char *hanzi[1024][2]={
{\"PY_mb_a\", \"阿啊\"},
{\"PY_mb_ai\", \"哎哀唉埃挨皑癌矮蔼艾爱隘碍\"},
{\"PY_mb_an\", \"安氨鞍俺岸按案胺暗\"},
{\"PY_mb_an\", \"肮昂盎\"},
{\"PY_mb_ao\", \"凹敖熬翱袄傲奥澳懊\"}
{\"PY_mb_ba\", \"八巴叭扒吧芭疤捌笆拔跋把靶坝爸罢霸\"}
{\"PY_mb_bai\", \"白百佰柏摆败拜稗\"}
{\"PY_mb_ban\", \"扳班般颁斑搬板版办半伴扮拌绊瓣\"}
{\"PY_mb_bang\", \"邦帮梆绑榜膀蚌傍棒谤磅镑\"},
{\"PY_mb_bao\", \"包苞胞褒雹宝饱保堡报抱豹鲍暴爆剥薄瀑\"},
{\"PY_mb_bei\", \"卑杯悲碑北贝狈备背钡倍被惫焙辈\"}
{\"PY_mb_ben\", \"奔本苯笨夯\"},
{\"PY_mb_beng\", \"崩绷甭泵迸蹦\"},
{\"PY_mb_bi\", \"逼鼻比彼笔鄙币必毕闭庇毖陛毙敝痹蓖弊碧蔽壁避臂\"},
{\"PY_mb_bian\", \"边编鞭贬扁卞便变遍辨辩辫\"},
{\"PY_mb_biao\", \"彪标膘表\"},
{\"PY_mb_bie\", \"憋鳖别瘪\"},
{\"PY_mb_bin\", \"宾彬斌滨濒摈\"},
{\"PY_mb_bing\", \"冰兵丙秉柄炳饼并病\"},
{\"PY_mb_bo\", \"拨波玻钵脖菠播伯驳帛泊勃铂舶博渤搏箔膊卜\"},
{\"PY_mb_bu\", \"补哺捕不布步怖部埠簿\"},
{\"PY_mb_ca\", \"擦\"},
{\"PY_mb_cai\", \"猜才材财裁采彩睬踩菜蔡\"}
{\"PY_mb_can\", \"参餐残蚕惭惨灿\"},
{\"PY_mb_cang\", \"仓沧苍舱藏\"}
{\"PY_mb_cao\", \"操糙曹槽草\"},
{\"PY_mb_ce\", \"册侧厕测策\"}
{\"PY_mb_ceng\", \"层蹭曾\"},
{\"PY_mb_cha\", \"叉插查茬茶搽察碴岔诧差刹\"},
{\"PY_mb_chai\", \"拆柴豺\"},
{\"PY_mb_chan\", \"掺搀谗馋缠蝉产铲阐颤\"},
{\"PY_mb_chang\", \"昌猖肠尝偿常厂场敞畅倡唱\"},
{\"PY_mb_chao\", \"抄钞超巢朝嘲潮吵炒绰\"},
{\"PY_mb_che\", \"车扯彻掣撤澈\"},
{\"PY_mb_chen\", \"郴尘臣忱沉辰陈晨衬趁\"},
{\"PY_mb_cheng\", \"称撑成呈承诚城乘惩程澄橙逞骋秤\"},
{\"PY_mb_chi\", \"吃痴弛池驰迟持尺侈齿耻斥赤炽翅\"},
{\"PY_mb_chong\", \"充冲虫崇宠\"},
{\"PY_mb_chou\", \"抽仇绸畴愁稠筹酬踌丑瞅臭\"},
{\"PY_mb_chu\", \"出初除厨滁锄雏橱躇础储楚处搐触矗畜\"},
{\"PY_mb_chuai\", \"揣\"},
{\"PY_mb_chuan\", \"川穿传船椽喘串\"},
{\"PY_mb_chuang\", \"闯疮窗床创\"},
{\"PY_mb_chui\", \"吹炊垂捶锤\"},
{\"PY_mb_chun\", \"春椿纯唇淳醇蠢\"},
{\"PY_mb_chuo\", \"戳\"},
{\"PY_mb_ci\", \"疵词茨瓷慈辞磁雌此次刺赐\"},
{\"PY_mb_cong\", \"囱从匆葱聪丛\"},
{\"PY_mb_cou\", \"凑\"},
{\"PY_mb_cu\", \"粗促醋簇\"},
{\"PY_mb_cuan\", \"蹿窜篡\"},
{\"PY_mb_cui\", \"崔催摧脆淬瘁粹翠\"},
{\"PY_mb_cun\", \"村存寸\"},
{\"PY_mb_cuo\", \"搓磋撮挫措错\"},
{\"PY_mb_da\", \"搭达答瘩打大\"},
{\"PY_mb_da\", \"呆歹傣代带待怠殆贷袋逮戴\"},
{\"PY_mb_dan\", \"丹单担耽郸胆掸旦但诞弹惮淡蛋氮\"},
{\"PY_mb_dang\", \"当挡党荡档\"},
{\"PY_mb_dao\", \"刀导岛倒捣祷蹈到悼盗道稻\"},
{\"PY_mb_de\", \"得德的\"},
{\"PY_mb_deng\", \"灯登蹬等邓凳瞪\"},
{\"PY_mb_di\", \"低堤滴狄迪敌涤笛嫡底抵地弟帝递第缔蒂\"},
{\"PY_mb_dian\", \"掂滇颠典点碘电佃甸店垫惦淀奠殿靛\"},
{\"PY_mb_diao\", \"刁叼凋碉雕吊钓掉\"},
{\"PY_mb_die\", \"爹跌迭谍叠碟蝶\"},
{\"PY_mb_ding\", \"丁叮盯钉顶鼎订定锭\"},
{\"PY_mb_diu\", \"丢\"},
{\"PY_mb_dong\", \"东冬董懂动冻侗恫栋洞\"},
{\"PY_mb_dou\", \"都兜斗抖陡豆逗痘\"},
{\"PY_mb_du\", \"督毒读犊独堵赌睹妒杜肚度渡镀\"},
{\"PY_mb_duan\", \"端短段断缎锻\"},
{\"PY_mb_dui\", \"堆队对兑\"},
{\"PY_mb_dun\", \"吨敦墩蹲盾钝顿遁\"},
{\"PY_mb_duo\", \"多哆夺掇朵垛躲剁堕舵惰跺\"},
{\"PY_mb_e\", \"讹俄娥峨鹅蛾额厄扼恶饿鄂遏\"},
{\"PY_mb_en\", \"恩\"},
{\"PY_mb_er\", \"儿而尔耳洱饵二贰\"},
{\"PY_mb_fa\", \"发乏伐罚阀筏法珐\"},
{\"PY_mb_fan\", \"帆番翻藩凡矾钒烦樊繁反返犯泛饭范贩\"},
{\"PY_mb_fang\", \"方坊芳防妨房肪仿访纺放\"},
{\"PY_mb_fei\", \"飞非啡菲肥匪诽吠废沸肺费\"},
{\"PY_mb_fen\", \"分吩纷芬氛酚坟汾焚粉份奋忿愤粪\"},
{\"PY_mb_feng\", \"丰风枫封疯峰烽锋蜂冯逢缝讽凤奉\"},
{\"PY_mb_fo\", \"佛\"},
{\"PY_mb_fou\", \"否\"},
{\"PY_mb_fu\", \"夫肤孵敷弗伏扶拂服俘氟浮涪符袱幅福辐抚甫府斧俯釜辅腑腐父讣付妇负附咐阜复赴副傅富赋缚腹覆\"},
{\"PY_mb_ga\", \"嘎噶\"},
{\"PY_mb_gai\", \"该改钙盖溉概\"},
{\"PY_mb_gan\", \"干甘杆肝柑竿秆赶敢感赣\"},
{\"PY_mb_gang\", \"冈刚岗纲肛缸钢港杠\"},
{\"PY_mb_gao\", \"皋羔高膏篙糕搞稿镐告\"},
{\"PY_mb_ge\", \"戈疙哥胳鸽割搁歌阁革格葛隔个各铬咯\"},
{\"PY_mb_gei\", \"给\"},
{\"PY_mb_gen\", \"根跟\"},
{\"PY_mb_geng\", \"更庚耕羹埂耿梗\"},
{\"PY_mb_gong\", \"工弓公功攻供宫恭躬龚巩汞拱共贡\"},
{\"PY_mb_gou\", \"勾沟钩狗苟构购垢够\"},
{\"PY_mb_gu \", \"估咕姑孤沽菇辜箍古谷股骨蛊鼓固故顾雇\"},
{\"PY_mb_gua\", \"瓜刮剐寡挂褂\"},
{\"PY_mb_guai\", \"乖拐怪\"},
{\"PY_mb_guan\", \"关观官冠棺馆管贯惯灌罐\"},
{\" PY_mb_guang\", \"光广逛\"},
{\"PY_mb_gui\", \"归圭龟规闺硅瑰轨诡癸鬼刽柜贵桂跪\"},
{\"PY_mb_gun\", \"辊滚棍\"},
{\"PY_mb_guo\", \"郭锅国果裹过\"},
{\"PY_mb_ha\", \"蛤哈\"},
{\"PY_mb_hai\", \"孩骸海亥骇害氦\"},
{\"PY_mb_han\", \"酣憨含邯函涵寒韩罕喊汉汗旱悍捍焊憾撼翰\"},
{\"PY_mb_hang\", \"杭航行\"},
{\"PY_mb_hao\", \"毫豪嚎壕好郝号浩耗\"},
{\"PY_mb_he\", \"呵喝禾合何和河阂核荷涸盒菏贺褐赫鹤\"},
{\"PY_mb_hei\", \"黑嘿\"},
{\"PY_mb_hen\", \"痕很狠恨\"},
{\"PY_mb_heng\", \"亨哼恒横衡\"},
{\"PY_mb_hong\", \"轰哄烘弘红宏洪虹鸿\"},
{\"PY_mb_hou\", \"侯喉猴吼后厚候\"},
{\"PY_mb_hu\", \"乎呼忽弧狐胡壶湖葫瑚糊蝴虎唬互户护沪\"},
{\"PY_mb_hua\", \"花华哗滑猾化划画话\"},
{\"PY_mb_huai\", \"怀徊淮槐坏\"},
{\"PY_mb_huan\", \"欢还环桓缓幻宦唤换涣患焕痪豢\"},
{\"PY_mb_huang\", \"荒慌皇凰黄惶煌蝗磺簧恍晃谎幌\"},
{\"PY_mb_hui\", \"灰恢挥辉徽回蛔悔卉汇会讳绘诲烩贿晦秽惠毁慧\"},
{\"PY_mb_hun\", \"昏荤婚浑魂混\"},
{\"PY_mb_huo\", \"豁活火伙或货获祸惑霍\"},
{\"PY_mb_ji\", \"讥击饥圾机肌鸡迹姬积基绩缉畸箕稽激及吉汲级即极急疾棘集嫉辑籍几己挤脊计记伎纪妓忌技际剂季既济继寂寄悸祭蓟冀藉\"},
{\"PY_mb_jia\", \"加夹佳枷家嘉荚颊甲贾钾价驾架假嫁稼挟\"},
{\"PY_mb_jian\", \"奸尖坚歼间肩艰兼监笺缄煎拣俭柬茧捡减剪检硷简碱见件建饯剑荐贱健涧舰渐溅践鉴键箭\"},
{\"PY_mb_jiang\", \"江姜将浆僵疆讲奖桨蒋匠降酱\"},
{\"PY_mb_jiao\", \"交郊娇浇骄胶椒焦蕉礁角狡绞饺矫脚铰搅剿缴叫轿较教窖酵觉嚼\"},
{\"PY_mb_jie\", \"阶皆接秸揭街节劫杰洁结捷睫截竭姐解介戒芥届界疥诫借\"},
{\"PY_mb_jin\", \"巾今斤金津筋襟仅紧谨锦尽劲近进晋浸烬禁靳\"},
{\"PY_mb_jing\", \"京经茎荆惊晶睛粳兢精鲸井颈景警净径痉竞竟敬靖境静镜\"},
{\"PY_mb_jiong\", \"炯窘\"},
{\"PY_mb_jiu\", \"纠究揪九久灸玖韭酒旧臼咎疚厩救就舅\"},
{\"PY_mb_ju\", \"居拘狙驹疽鞠局桔菊咀沮举矩句巨拒具炬俱剧惧据距锯聚踞\"},
{\"PY_mb_juan\", \"娟捐鹃卷倦绢眷\"},
{\"PY_mb_jue\", \"撅决诀抉绝倔掘爵攫\"},
{\"PY_mb_jun\", \"军君均钧菌俊郡峻浚骏竣\"},
{\"PY_mb_ka\", \"咖喀卡\"},
{\"PY_mb_kai\", \"开揩凯慨楷\"},
{\"PY_mb_kan\", \"槛刊勘堪坎砍看\"},
{\"PY_mb_kang\", \"康慷糠扛亢抗炕\"},
{\"PY_mb_kao\", \"考拷烤靠\"},
{\"PY_mb_ke\", \"坷苛柯科棵颗磕壳咳可渴克刻客课\"},
{\"PY_mb_ken\", \"肯垦恳啃\"},
{\"PY_mb_keng\", \"吭坑\"},
{\"PY_mb_kong\", \"空孔恐控\"},
{\"PY_mb_kou\", \"抠口扣寇\"},
{\"PY_mb_ku\", \"枯哭窟苦库裤酷\"},
{\"PY_mb_kua\", \"夸垮挎胯跨\"},
{\"PY_mb_kuai\", \"块快侩筷\"},
{\"PY_mb_kuan\", \"宽款\"},
{\"PY_mb_kuang\", \"匡筐狂况旷矿框眶\"},
{\"PY_mb_kui\", \"亏岿盔窥奎葵魁傀愧溃馈\"},
{\"PY_mb_kun\", \"坤昆捆困\"},
{\"PY_mb_kuo\", \"扩括阔廓\"},
{\"PY_mb_la\", \"垃拉啦喇腊蜡辣\"},
{\"PY_mb_lai\", \"来莱赖\"},
{\"PY_mb_lan\", \"兰拦栏婪阑蓝谰澜篮览揽缆懒烂滥\"},
{\"PY_mb_lang\", \"郎狼廊琅榔朗浪\"},
{\"PY_mb_lao\", \"捞劳牢老佬姥涝烙酪\"},
{\"PY_mb_le\", \"乐勒了\"},
{\"PY_mb_lei\", \"雷镭垒磊蕾儡肋泪类累擂\"},
{\"PY_mb_leng\", \"棱楞冷\"},
{\"PY_mb_li\", \"厘梨狸离莉犁漓璃黎篱礼李里哩理鲤力历厉立吏丽利励沥例隶俐荔栗砾粒傈痢\"},
{\"PY_mb_lian\", \"连帘怜涟莲联廉镰敛脸练炼恋链\"},
{\"PY_mb_liang\", \"俩良凉梁粮粱两亮谅辆晾量\"},
{\"PY_mb_liao\", \"潦辽疗聊僚寥廖撩燎镣料撂\"},
{\"PY_mb_lie\", \"列劣烈猎裂\"},
{\"PY_mb_lin\", \"邻林临淋琳霖磷鳞凛吝赁拎\"},
{\"PY_mb_ling\", \"伶灵岭玲凌铃陵羚菱零龄领令另\"},
{\"PY_mb_liu\", \"溜刘流留琉硫馏榴瘤柳六\"},
{\"PY_mb_long\", \"龙咙笼聋隆窿陇垄拢\"},
{\"PY_mb_lou\", \"娄楼搂篓陋漏\"},
{\"PY_mb_lu\", \"露卢庐芦炉颅卤虏掳鲁陆录赂鹿禄碌路戮潞麓\"},
{\"PY_mb_luan\", \"孪峦挛滦卵乱\"},
{\"PY_mb_lue\", \"掠略\"},
{\"PY_mb_lun\", \"抡仑伦沦纶轮论\"},
{\"PY_mb_luo\", \"罗萝逻锣箩骡螺裸洛络骆落\"},
{\"PY_mb_lv\", \"滤驴吕侣旅铝屡缕履律虑率绿氯\"},
{\"PY_mb_ma\", \"妈麻马玛码蚂骂吗嘛\"},
{\"PY_mb_mai\", \"埋买迈麦卖脉\"},
{\"PY_mb_man\", \"蛮馒瞒满曼谩慢漫蔓\"},
{\"PY_mb_mang\", \"忙芒盲茫莽氓\"},
{\"PY_mb_mao\", \"猫毛矛茅锚卯铆茂冒贸帽貌\"},
{\"PY_mb_me\", \"么\"},
{\"PY_mb_mei\", \"没枚玫眉梅媒煤酶霉每美镁妹昧媚寐\"},
{\"PY_mb_men\", \"门闷们\"},
{\"PY_mb_meng\", \"萌盟檬猛蒙锰孟梦\"},
{\"PY_mb_mi\", \"弥迷谜醚糜靡米眯泌觅秘密幂蜜\"},
{\"PY_mb_mian\", \"眠绵棉免勉娩冕缅面\"},
{\"PY_mb_miao\", \"苗描瞄秒渺藐妙庙\"},
{\"PY_mb_mie\", \"灭蔑\"},
{\"PY_mb_min\", \"民皿抿闽悯敏\"},
{\"PY_mb_ming\", \"名明鸣铭螟命\"},
{\"PY_mb_miu\", \"谬\"},
{\"PY_mb_mo\", \"貉摸摹模膜摩磨蘑魔抹末沫陌莫寞漠墨默\"},
{\"PY_mb_mou\", \"牟谋某\"},
{\"PY_mb_mu\", \"母亩牡姆拇木目牧募墓幕睦慕暮穆\"},
{\"PY_mb_na\", \"拿哪那纳娜钠呐\"},
{\"PY_mb_nai\", \"乃奶氖奈耐\"},
{\"PY_mb_nan\", \"男南难\"},
{\"PY_mb_nang\", \"囊\"},
{\"PY_mb_nao\", \"挠恼脑闹淖\"},
{\"PY_mb_ne\", \"呢\"},
{\"PY_mb_nei\", \"内馁\"},
{\"PY_mb_nen\", \"嫩\"},
{\"PY_mb_neng\", \"能\"},
{\"PY_mb_ni\", \"妮尼泥倪霓你拟逆匿溺腻\"},
{\"PY_mb_nian\", \"拈年捻撵碾念蔫\"},
{\"PY_mb_niang\", \"娘酿\"},
{\"PY_mb_niao\", \"鸟尿\"},
{\"PY_mb_nie\", \"捏涅聂啮镊镍孽\"},
{\"PY_mb_nin\", \"您\"},
{\"PY_mb_ning\", \"宁拧狞柠凝泞\"},
{\"PY_mb_niu\", \"牛扭纽钮\"},
{\"PY_mb_nong\", \"农浓脓弄\"},
{\"PY_mb_nu\", \"奴努怒\"},
{\"PY_mb_nuan\", \"暖\"},
{\"PY_mb_nue\", \"疟虐\"},
{\"PY_mb_nuo\", \"挪诺懦糯\"},
{\"PY_mb_nv\", \"女\"},
{\"PY_mb_o\", \"哦\"},
{\"PY_mb_ou\", \"欧殴鸥呕偶藕沤\"},
{\"PY_mb_pa\", \"趴啪爬耙琶帕怕\"},
{\"PY_mb_pai\", \"拍徘排牌派湃\"},
{\"PY_mb_pan\", \"潘攀盘磐判叛盼畔\"},
{\"PY_mb_pang\", \"乓庞旁耪胖\"},
{\"PY_mb_pao\", \"抛刨咆炮袍跑泡\"},
{\"PY_mb_pei\", \"呸胚陪培赔裴沛佩配\"},
{\"PY_mb_pen\", \"喷盆\"},
{\"PY_mb_peng\", \"抨砰烹朋彭棚硼蓬鹏澎篷膨捧碰\"},
{\"PY_mb_pi\", \"辟批坯披砒劈霹皮毗疲啤琵脾匹痞屁僻譬\"},
{\"PY_mb_pian\", \"片偏篇骗\"},
{\"PY_mb_piao\", \"漂飘瓢票\"},
{\"PY_mb_pie\", \"撇瞥\"},
{\"PY_mb_pin\", \"拼贫频品聘\"},
{\"PY_mb_ping\", \"乒平评凭坪苹屏瓶萍\"},
{\"PY_mb_po\", \"坡泼颇婆迫破粕魄\"},
{\"PY_mb_pou\", \"剖\"},
{\"PY_mb_pu\", \"脯仆扑铺莆菩葡蒲朴圃埔浦普谱曝\"},
{\"PY_mb_qi\", \"七沏妻柒凄栖戚期欺漆祁齐其奇歧祈脐崎畦骑棋旗乞企岂启起气讫迄弃汽泣契砌器\"},
{\"PY_mb_qia\", \"掐恰洽\"},
{\"PY_mb_qian\", \"千仟扦迁钎牵铅谦签前钱钳乾潜黔浅遣谴欠堑嵌歉\"},
{\"PY_mb_qiang\", \"呛羌枪腔强墙蔷抢\"},
{\"PY_mb_qiao\", \"悄敲锹橇乔侨桥瞧巧俏峭窍翘撬鞘\"},
{\"PY_mb_qie\", \"切茄且怯窃\"},
{\"PY_mb_qin\", \"亲侵钦芹秦琴禽勤擒寝沁\"},
{\"PY_mb_qing\", \"青氢轻倾卿清情晴氰擎顷请庆\"},
{\"PY_mb_qiong\", \"穷琼\"},
{\"PY_mb_qiu\", \"丘邱秋囚求泅酋球\"},
{\"PY_mb_qu\", \"区曲驱屈蛆躯趋渠取娶龋去趣\"},
{\"PY_mb_quan\", \"圈全权泉拳痊醛颧犬劝券\"},
{\"PY_mb_que\", \"炔缺瘸却雀确鹊榷\"},
{\"PY_mb_qun\", \"裙群\"},
{\"PY_mb_ran\", \"然燃冉染\"},
{\"PY_mb_rang\", \"瓤嚷壤攘让\"},
{\"PY_mb_rao\", \"饶扰绕\"},
{\"PY_mb_re\", \"惹热\"},
{\"PY_mb_ren\", \"人仁壬忍刃认任纫妊韧\"},
{\"PY_mb_reng\", \"扔仍\"},
{\"PY_mb_ri\", \"日\"},
{\"PY_mb_rong\", \"戎绒茸荣容溶蓉熔融冗\"},
{\"PY_mb_rou\", \"柔揉肉\"},
{\"PY_mb_ru\", \"如茹儒孺蠕汝乳辱入褥\"},
{\"PY_mb_ruan\", \"阮软\"},
{\"PY_mb_rui\", \"蕊锐瑞\"},
{\"PY_mb_run\", \"闰润\"},
{\"PY_mb_ruo\", \"若弱\"},
{\"PY_mb_sa\", \"撒洒萨\"},
{\"PY_mb_sai\", \"塞腮鳃赛\"},
{\"PY_mb_san\", \"三叁伞散\"},
{\"PY_mb_sang\", \"桑嗓丧\"},
{\"PY_mb_sao\", \"搔骚扫嫂\"},
{\"PY_mb_se\", \"色涩瑟\"},
{\"PY_mb_sen\", \"森\"},
{\"PY_mb_seng\", \"僧\"},
{\"PY_mb_sha\", \"杀沙纱砂莎傻啥煞厦\"},
{\"PY_mb_shai\", \"筛晒\"},
{\"PY_mb_shan\", \"山删杉衫珊煽闪陕汕苫扇善缮擅膳赡栅\"},
{\"PY_mb_shang\", \"伤商墒裳晌赏上尚\"},
{\"PY_mb_shao\", \"捎梢烧稍勺芍韶少邵绍哨\"},
{\"PY_mb_she\", \"奢赊舌蛇舍设社射涉赦慑摄\"},
{\"PY_mb_shen\", \"申伸身呻绅娠砷深神沈审婶肾甚渗慎什\"},
{\"PY_mb_sheng\", \"升生声牲胜甥绳省圣盛剩\"},
{\"PY_mb_shi\", \"匙尸失师虱诗施狮湿十石时识实拾蚀食史矢使始驶屎士氏世仕市示式事侍势视试饰室恃拭是柿适逝释嗜誓噬似\"},
{\"PY_mb_shou\", \"收手守首寿受兽售授瘦\"},
{\"PY_mb_shu\", \"书抒叔枢殊梳淑疏舒输蔬孰赎熟暑黍署鼠蜀薯曙术戍束述树竖恕庶数墅漱属\"},
{\"PY_mb_shua\", \"刷耍\"},
{\"PY_mb_shuai\", \"衰摔甩帅\"},
{\"PY_mb_shuan\", \"拴栓\"},
{\"PY_mb_shuang\", \"双霜爽\"},
{\"PY_mb_shui\", \"谁水税睡\"},
{\"PY_mb_shun\", \"吮顺舜瞬\"},
{\"PY_mb_shuo\", \"说烁朔硕\"},
{\"PY_mb_si\", \"丝司私思斯嘶撕死巳四寺伺饲嗣肆\"},
{\"PY_mb_song\", \"松怂耸讼宋诵送颂\"},
{\"PY_mb_sou\", \"嗽搜艘擞\"},
{\"PY_mb_su\", \"苏酥俗诉肃素速粟塑溯僳\"},
{\"PY_mb_suan\", \"酸蒜算\"},
{\"PY_mb_sui\", \"虽绥隋随髓岁祟遂碎隧穗\"},
{\"PY_mb_sun\", \"孙损笋\"},
{\"PY_mb_suo\", \"唆梭蓑缩所索琐锁\"},
{\"PY_mb_ta\", \"她他它塌塔獭挞踏蹋\"},
{\"PY_mb_tai\", \"胎台抬苔太汰态泰酞\"},
{\"PY_mb_tan\", \"坍贪摊滩瘫坛谈痰谭潭檀坦袒毯叹炭探碳\"},
{\"PY_mb_tang\", \"汤唐堂棠塘搪膛糖倘淌躺烫趟\"},
{\"PY_mb_tao\", \"涛绦掏滔逃桃陶淘萄讨套\"},
{\"PY_mb_te\", \"特\"},
{\"PY_mb_teng\", \"疼腾誊藤\"},
{\"PY_mb_ti\", \"剔梯锑踢啼提题蹄体屉剃涕惕替嚏\"},
{\"PY_mb_tian\", \"天添田恬甜填腆舔\"},
{\"PY_mb_tiao\", \"调挑条迢眺跳\"},
{\"PY_mb_tie\", \"贴铁帖\"},
{\"PY_mb_ting\", \"厅汀听烃廷亭庭停挺艇\"},
{\"PY_mb_tong\", \"通同彤桐铜童酮瞳统捅桶筒痛\"},
{\"PY_mb_tou\", \"偷头投透\"},
{\"PY_mb_tu\", \"凸秃突图徒涂途屠土吐兔\"},
{\"PY_mb_tuan\", \"湍团\"},
{\"PY_mb_tui\", \"推颓腿退蜕褪\"},
{\"PY_mb_tun\", \"囤吞屯臀\"},
{\"PY_mb_tuo\", \"托拖脱驮陀驼鸵妥椭拓唾\"},
{\"PY_mb_wa\", \"哇娃挖洼蛙瓦袜\"},
{\"PY_mb_wai\", \"歪外\"},
{\"PY_mb_wan\", \"弯湾豌丸完玩顽烷宛挽晚婉惋皖碗万腕\"},
{\"PY_mb_wang\", \"汪亡王网往枉妄忘旺望\"},
{\"PY_mb_wei\", \"危威微巍为韦围违桅唯惟维潍伟伪尾纬苇委萎卫未位味畏胃尉谓喂渭蔚慰魏\"},
{\"PY_mb_wen\", \"温瘟文纹闻蚊吻紊稳问\"},
{\"PY_mb_weng\", \"翁嗡瓮\"},
{\"PY_mb_wo\", \"挝涡窝蜗我沃卧握斡\"},
{\"PY_mb_wu\", \"乌污呜巫屋诬钨无毋吴吾芜梧五午伍坞武侮捂舞勿务戊物误悟晤雾\"},
{\"PY_mb_xi\", \"夕汐西吸希昔析矽息牺悉惜烯硒晰犀稀溪锡熄熙嘻膝习席袭媳檄洗喜戏系细隙\"},
{\"PY_mb_xia\", \"虾瞎匣侠峡狭暇辖霞下吓夏\"},
{\"PY_mb_xian\", \"铣仙先纤掀锨鲜闲弦贤咸涎舷衔嫌显险县现线限宪陷馅羡献腺\"},
{\"PY_mb_xiang\", \"乡相香厢湘箱襄镶详祥翔享响想向巷项象像橡\"},
{\"PY_mb_xiao\", \"宵消萧硝销霄嚣淆小晓孝肖哮效校笑啸\"},
{\"PY_mb_xie\", \"些楔歇蝎协邪胁斜谐携鞋写泄泻卸屑械谢懈蟹\"},
{\"PY_mb_xin\", \"心忻芯辛欣锌新薪信衅\"},
{\"PY_mb_xing\", \"兴星惺猩腥刑邢形型醒杏姓幸性\"},
{\"PY_mb_xiong\", \"凶兄匈汹胸雄熊\"},
{\"PY_mb_xiu\", \"宿休修羞朽秀绣袖锈嗅\"},
{\"PY_mb_xu\", \"戌须虚嘘需墟徐许旭序叙恤绪续酗婿絮蓄吁\"},
{\"PY_mb_xuan\", \"轩宣喧玄悬旋选癣绚眩\"},
{\"PY_mb_xue\", \"削靴薛穴学雪血\"},
{\"PY_mb_xun\", \"勋熏寻巡旬驯询循训讯汛迅逊殉\"},
{\"PY_mb_ya\", \"丫压呀押鸦鸭牙芽蚜崖涯衙哑雅亚讶\"},
{\"PY_mb_yan\", \"咽烟淹焉阉延严言岩沿炎研盐阎蜒颜奄衍掩眼演厌彦砚唁宴艳验谚堰焰雁燕\"},
{\"PY_mb_yang\", \"央殃秧鸯扬羊阳杨佯疡洋仰养氧痒样漾\"},
{\"PY_mb_yao\", \"侥妖腰邀尧姚窑谣摇遥瑶咬舀药要耀钥\"},
{\"PY_mb_ye\", \"椰噎爷耶也冶野业叶曳页夜掖液腋\"},
{\"PY_mb_yi\", \"一伊衣医依铱壹揖仪夷沂宜姨胰移遗颐疑彝乙已以矣蚁倚椅义亿忆艺议亦屹异役抑译邑易绎诣疫益谊翌逸意溢肄裔毅翼臆\"},
{\"PY_mb_yin\", \"因阴姻茵荫音殷吟寅淫银尹引饮隐印\"},
{\"PY_mb_ying\", \"应英婴缨樱鹰迎盈荧莹萤营蝇赢颖影映硬\"},
{\"PY_mb_yo\", \"哟\"},
{\"PY_mb_yong\", \"佣拥痈庸雍臃永咏泳勇涌恿蛹踊用\"},
{\"PY_mb_you\", \"优忧幽悠尤由犹邮油铀游友有酉又右幼佑诱釉\"},
{\"PY_mb_yu\", \"迂淤渝于予余盂鱼俞娱渔隅愉逾愚榆虞舆与宇屿羽雨禹语玉驭芋育郁狱峪浴预域欲喻寓御裕遇愈誉豫\"},
{\"PY_mb_yuan\", \"冤鸳渊元员园垣原圆袁援缘源猿辕远苑怨院愿\"},
{\"PY_mb_yue\", \"曰约月岳悦阅跃粤越\"},
{\"PY_mb_yun\", \"云匀郧耘允陨孕运晕酝韵蕴\"},
{\"PY_mb_za\", \"匝杂砸咋\"},
{\"PY_mb_zai\", \"灾哉栽宰载再在仔\"},
{\"PY_mb_zan\", \"咱攒暂赞\"},
{\"PY_mb_zang\", \"赃脏葬\"},
{\"PY_mb_zao\", \"遭糟凿早枣蚤澡藻灶皂造噪燥躁\"},
{\"PY_mb_ze\", \"则择泽责\"},
{\"PY_mb_zei\", \"贼\"},
{\"PY_mb_zen\", \"怎\"},
{\"PY_mb_zeng\", \"增憎赠\"},
{\"PY_mb_zha\", \"喳渣扎札轧闸铡眨乍诈炸榨柞\"},
{\"PY_mb_zhai\", \"斋摘宅翟窄债寨\"},
{\"PY_mb_zhan\", \"沾毡粘詹瞻斩展盏崭辗占战栈站绽湛蘸\"},
{\"PY_mb_zhang\", \"长张章彰漳樟涨掌丈仗帐杖胀账障瘴\"},
{\"PY_mb_zhao\", \"招昭找沼召兆赵照罩肇爪\"},
{\"PY_mb_zhe\", \"遮折哲蛰辙者锗这浙蔗着\"},
{\"PY_mb_zhen\", \"贞针侦珍真砧斟甄臻诊枕疹阵振镇震帧\"},
{\"PY_mb_zheng\", \"争征怔挣狰睁蒸拯整正证郑政症\"},
{\"PY_mb_zhi\", \"之支汁芝吱枝知织肢脂蜘执侄直值职植殖止只旨址纸指趾至志制帜治炙质峙挚秩致掷痔窒智滞稚置\"},
{\"PY_mb_zhong\", \"中忠终盅钟衷肿种仲众重\"},
{\"PY_mb_zhou\", \"州舟诌周洲粥轴肘帚咒宙昼皱骤\"},
{\"PY_mb_zhu\", \"朱诛株珠诸猪蛛竹烛逐主拄煮嘱瞩住助注贮驻柱祝著蛀筑铸\"},
{\"PY_mb_zhua\", \"抓\"},
{\"PY_mb_zhuai\", \"拽\"},
{\"PY_mb_zhuan\", \"专砖转撰篆\"},
{\"PY_mb_zhuang\", \"妆庄桩装壮状幢撞\"},
{\"PY_mb_zhui\", \"追椎锥坠缀赘\"},
{\"PY_mb_zhun\", \"谆准\"},
{\"PY_mb_zhuo\", \"卓拙捉桌灼茁浊酌啄琢\"},
{\"PY_mb_zi\", \"孜兹咨姿资淄滋籽子紫滓字自渍\"},
{\"PY_mb_zong\", \"宗综棕踪鬃总纵\"},
{\"PY_mb_zou\", \"邹走奏揍\"},
{\"PY_mb_zu\", \"租足卒族诅阻组祖\"},
{\"PY_mb_zuan\", \"赚纂钻\"},
{\"PY_mb_zui\", \"嘴最罪醉\"},
{\"PY_mb_zun\", \"尊遵\"},
{\"PY_mb_zuo\", \"昨左佐作坐座做\"},
};
//================================================================================================
#endif
#if 1
/*
参数1 : 需要转换的拼音原字符
参数2 : 当前的输入,可能是个拼音,也可能是选择
参数3 : 转换后的得到的拼音汉字
返回值:备用
*/
int PY_function(char *py_s, char *ch, char *py_hanzi)
{
char buf[10] = {0,0,0,0,0,0,0,0,0,0};
char str1[128] = {0};//str1是我输入的拼音,不带PY_mb_
static char str2[128] = {0}; //静态变量,用于存放上一次的拼音转换的结果
char str3[128] = \"PY_mb_\";//str3是我要查找的,带PY_mb_
char my_hanzi[128] = {0,0,0,0,0,0,0,0,0,0,0,0};
int i = 0,tmp = 0;
char* (*p)[2];
if(ch[0] >= \'0\' && ch[0] <= \'9\') //是选择按钮,1-9选择对应的字符
{
switch(atoi(ch))
{
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 30:
case 31:
case 32:
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
case 39:
i = atoi(ch) - 1;
strncpy(buf,str2+i*2,2);
strcat(my_hanzi, buf);
strcpy(py_hanzi, my_hanzi);
break;
}
memset(str2, 0, sizeof(str1));
return 0;
}
memset(str2, 0, sizeof(str1));
strcat(str3, py_s);
strcpy(str1, py_s);
printf(\"str1 == %s\\n\",str1);
printf(\"str3 == %s\\n\", str3);
switch(str3[6])
{
case \'a\':
p = &hanzi[0];
tmp = 4;
break;
case \'b\':
p = &hanzi[5];
tmp = 16;
break;
case \'c\':
p = &hanzi[21];
tmp = 33;
break;
case \'d\':
p = &hanzi[54];
tmp = 20;
break;
case \'e\':
p = &hanzi[74];
tmp = 3;
break;
case \'f\':
p = &hanzi[77];
tmp = 9;
break;
case \'g\':
p = &hanzi[86];
tmp = 19;
break;
case \'h\':
p = &hanzi[105];
tmp = 19;
break;
case \'i\':
p = NULL;
tmp = 0;
break;
case \'j\':
p = &hanzi[124];
tmp = 14;
break;
case \'k\':
p = &hanzi[138];
tmp = 18;
break;
case \'l\':
p = &hanzi[156];
tmp = 24;
break;
case \'m\':
p = &hanzi[180];
tmp = 19;
break;
case \'n\':
p = &hanzi[199];
tmp = 23;
break;
case \'o\':
p = &hanzi[222];
tmp = 2;
break;
case \'p\':
p = &hanzi[224];
tmp = 17;
break;
case \'q\':
p = &hanzi[241];
tmp = 14;
break;
case \'r\':
p = &hanzi[255];
tmp = 14;
break;
case \'s\':
p = &hanzi[269];
tmp = 34;
break;
case \'t\':
p = &hanzi[303];
tmp = 19;
break;
case \'u\':
p = NULL;
tmp = 0;
break;
case \'v\':
p = NULL;
tmp = 0;
break;
case \'w\':
p = &hanzi[322];
tmp = 9;
break;
case \'x\':
p = &hanzi[331];
tmp = 14;
break;
case \'y\':
p = &hanzi[345];
tmp = 15;
break;
case \'z\':
p = &hanzi[360];
tmp = 36;
break;
}
while(tmp--)
{
if(strcmp(str3,(*p)[0]) == 0)
{
strcpy(str2,(*p)[1]);
strcpy(py_hanzi,str2);
}
p++;
}
return 1;
}
#endif
#if 1
int main(void)
{
char py_s[32] = {0,0,0,0,0,0,0,0};
char ch[2] = {0, 0};
char py_hanzi1[128] = {0,0,0,0,0,0,0};
char py_hanzi2[128] = {0,0,0,0,0,0,0};
char c1[10];
char zhi[128];
memset(c1,0,10);
memset(zhi,0,128);
while(1)
{
scanf(\"%s\", py_s);
if(py_s[0] <\'0\' || py_s[0] >\'9\')
{
strcpy(c1,py_s);
PY_function(c1,py_s, py_hanzi1);
convert(py_hanzi1);
printf(\"1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9\\n\");
printf(\"%s\\n\",py_hanzi1);
}
else
{
PY_function(c1,py_s, py_hanzi1);
convert(py_hanzi1);
printf(\"%s\\n\",py_hanzi1);
strcat(zhi,py_hanzi1);
printf(\"curr_iput: %s\\n\",zhi);
}
}
return 0;
}
#endif