为汉字注音的C程序代码
2004-08-14 04:14
519 查看
【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
//代码里有注释,偶就不多讲了,真的很容易懂
posted on 2004年06月26日 8:31 AM
Comments
# 回复:【原创醒目】为汉字注音的程序代码
creamdog
靠,格式全没了!!
大家用VS打开以后,按Ctrl+K、Ctrl+F
Posted @ 2004-06-26 8:43 AM
# 回复:【原创醒目】为汉字注音的C程序代码,支持C编译的都用能!
sdlcc
代码保存后在vc中按ctrl+A,alt+F8重新格式化一下就可以了。
Posted @ 2004-06-26 10:19 AM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
mutalisk
typedef map TableType;
这一句掉了东西
Posted @ 2004-07-06 4:22 PM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
suki
为什么我在VC6里编译不能通过.typedef map TableType;
TableType g_Table;这两句有错
Posted @ 2004-07-19 2:36 PM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
suki
请回复
Posted @ 2004-07-19 2:37 PM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
creamdog
修正了,网页格式问题
Posted @ 2004-07-20 8:05 PM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
RookieStar
老大,多音字问题怎么办?
比如我在程序里通过输入hang得到“行”,而你的程序给我“xing”这个答案……
VS.NET下编译发现少了一句#include<IOSTREAM>
//代码里有注释,偶就不多讲了,真的很容易懂
// Char2Pinyin.cpp : 定义控制台应用程序的入口点。 // #include <WINDOWS.H> #include <CONIO.H> #include <IOMANIP> #include <MAP> using namespace std; typedef map<SHORT, int> TableType; TableType g_Table; void GenTable( void ); int UserInput( wchar_t &wChar, short &nWide ); void Output( wchar_t wChar, short nWide ); int main( void ) { cout << "Creamdog版权所有,转贴不究。/n"; int nr = 0; // 生成对照表 GenTable(); // 用户输入字符 wchar_t wChar; short nWide; nr = UserInput( wChar, nWide ); if ( 0 == nr ) { Output( wChar, nWide ); } system( "pause" ); return nr; } int UserInput( wchar_t &wChar, short &nWide ) { // 获得字符 cout << "请输入汉字字符:"; wChar = _getwche(); cout << endl; // 将宽字符转为多字节 char cTemp[2] = { 0, 0 }; if ( 2 != WideCharToMultiByte( CP_ACP, 0, (LPCWSTR)&wChar, 1, cTemp, 2, NULL, NULL ) ) { cout << "转换出现未知异常!" << endl; return -1; } // 交换,以作为int存储 swap( cTemp[0], cTemp[1] ); nWide = *(short*)cTemp; if ( nWide < g_Table.begin()->first || nWide > g_Table.rbegin()->first + 5 ) { cout << "对不起,你输入的不是汉字或无法识别!" << endl; return -2; } return 0; } void Output( wchar_t wChar, short nWide ) { // 查表 TableType::iterator cur = g_Table.begin(); TableType::iterator end = g_Table.end(); while ( cur != end ) { if ( -nWide > -cur->first ) { // 输出 cur--; cout << setbase( 16 ) << "Unicode编码为:U+" << (short)wChar << "/n多字节内码为:0x" << nWide << "/n注音为:" << (char*)&(cur->second) << endl; break; } cur++; } } void GenTable( void ) { typedef TableType::value_type PairType; g_Table.clear(); g_Table.insert( PairType( -20319, *(int*)"a" ) ); g_Table.insert( PairType( -20317, *(int*)"ai" ) ); g_Table.insert( PairType( -20304, *(int*)"an" ) ); g_Table.insert( PairType( -20295, *(int*)"ang" ) ); g_Table.insert( PairType( -20292, *(int*)"ao" ) ); g_Table.insert( PairType( -20283, *(int*)"ba" ) ); g_Table.insert( PairType( -20265, *(int*)"bai" ) ); g_Table.insert( PairType( -20257, *(int*)"ban" ) ); g_Table.insert( PairType( -20242, *(int*)"bang" ) ); g_Table.insert( PairType( -20230, *(int*)"bao" ) ); g_Table.insert( PairType( -20051, *(int*)"bei" ) ); g_Table.insert( PairType( -20036, *(int*)"ben" ) ); g_Table.insert( PairType( -20032, *(int*)"beng" ) ); g_Table.insert( PairType( -20026, *(int*)"bi" ) ); g_Table.insert( PairType( -20002, *(int*)"bian" ) ); g_Table.insert( PairType( -19990, *(int*)"biao" ) ); g_Table.insert( PairType( -19986, *(int*)"bie" ) ); g_Table.insert( PairType( -19982, *(int*)"bin" ) ); g_Table.insert( PairType( -19976, *(int*)"bing" ) ); g_Table.insert( PairType( -19805, *(int*)"bo" ) ); g_Table.insert( PairType( -19784, *(int*)"bu" ) ); g_Table.insert( PairType( -19775, *(int*)"ca" ) ); g_Table.insert( PairType( -19774, *(int*)"cai" ) ); g_Table.insert( PairType( -19763, *(int*)"can" ) ); g_Table.insert( PairType( -19756, *(int*)"cang" ) ); g_Table.insert( PairType( -19751, *(int*)"cao" ) ); g_Table.insert( PairType( -19746, *(int*)"ce" ) ); g_Table.insert( PairType( -19741, *(int*)"ceng" ) ); g_Table.insert( PairType( -19739, *(int*)"cha" ) ); g_Table.insert( PairType( -19728, *(int*)"chai" ) ); g_Table.insert( PairType( -19725, *(int*)"chan" ) ); g_Table.insert( PairType( -19715, *(int*)"chang" ) ); g_Table.insert( PairType( -19540, *(int*)"chao" ) ); g_Table.insert( PairType( -19531, *(int*)"che" ) ); g_Table.insert( PairType( -19525, *(int*)"chen" ) ); g_Table.insert( PairType( -19515, *(int*)"cheng" ) ); g_Table.insert( PairType( -19500, *(int*)"chi" ) ); g_Table.insert( PairType( -19484, *(int*)"chong" ) ); g_Table.insert( PairType( -19479, *(int*)"chou" ) ); g_Table.insert( PairType( -19467, *(int*)"chu" ) ); g_Table.insert( PairType( -19289, *(int*)"chuai" ) ); g_Table.insert( PairType( -19288, *(int*)"chuan" ) ); g_Table.insert( PairType( -19281, *(int*)"chuang" ) ); g_Table.insert( PairType( -19275, *(int*)"chui" ) ); g_Table.insert( PairType( -19270, *(int*)"chun" ) ); g_Table.insert( PairType( -19263, *(int*)"chuo" ) ); g_Table.insert( PairType( -19261, *(int*)"ci" ) ); g_Table.insert( PairType( -19249, *(int*)"cong" ) ); g_Table.insert( PairType( -19243, *(int*)"cou" ) ); g_Table.insert( PairType( -19242, *(int*)"cu" ) ); g_Table.insert( PairType( -19238, *(int*)"cuan" ) ); g_Table.insert( PairType( -19235, *(int*)"cui" ) ); g_Table.insert( PairType( -19227, *(int*)"cun" ) ); g_Table.insert( PairType( -19224, *(int*)"cuo" ) ); g_Table.insert( PairType( -19218, *(int*)"da" ) ); g_Table.insert( PairType( -19212, *(int*)"dai" ) ); g_Table.insert( PairType( -19038, *(int*)"dan" ) ); g_Table.insert( PairType( -19023, *(int*)"dang" ) ); g_Table.insert( PairType( -19018, *(int*)"dao" ) ); g_Table.insert( PairType( -19006, *(int*)"de" ) ); g_Table.insert( PairType( -19003, *(int*)"deng" ) ); g_Table.insert( PairType( -18996, *(int*)"di" ) ); g_Table.insert( PairType( -18977, *(int*)"dian" ) ); g_Table.insert( PairType( -18961, *(int*)"diao" ) ); g_Table.insert( PairType( -18952, *(int*)"die" ) ); g_Table.insert( PairType( -18783, *(int*)"ding" ) ); g_Table.insert( PairType( -18774, *(int*)"diu" ) ); g_Table.insert( PairType( -18773, *(int*)"dong" ) ); g_Table.insert( PairType( -18763, *(int*)"dou" ) ); g_Table.insert( PairType( -18756, *(int*)"du" ) ); g_Table.insert( PairType( -18741, *(int*)"duan" ) ); g_Table.insert( PairType( -18735, *(int*)"dui" ) ); g_Table.insert( PairType( -18731, *(int*)"dun" ) ); g_Table.insert( PairType( -18722, *(int*)"duo" ) ); g_Table.insert( PairType( -18710, *(int*)"e" ) ); g_Table.insert( PairType( -18697, *(int*)"en" ) ); g_Table.insert( PairType( -18696, *(int*)"er" ) ); g_Table.insert( PairType( -18526, *(int*)"fa" ) ); g_Table.insert( PairType( -18518, *(int*)"fan" ) ); g_Table.insert( PairType( -18501, *(int*)"fang" ) ); g_Table.insert( PairType( -18490, *(int*)"fei" ) ); g_Table.insert( PairType( -18478, *(int*)"fen" ) ); g_Table.insert( PairType( -18463, *(int*)"feng" ) ); g_Table.insert( PairType( -18448, *(int*)"fo" ) ); g_Table.insert( PairType( -18447, *(int*)"fou" ) ); g_Table.insert( PairType( -18446, *(int*)"fu" ) ); g_Table.insert( PairType( -18239, *(int*)"ga" ) ); g_Table.insert( PairType( -18237, *(int*)"gai" ) ); g_Table.insert( PairType( -18231, *(int*)"gan" ) ); g_Table.insert( PairType( -18220, *(int*)"gang" ) ); g_Table.insert( PairType( -18211, *(int*)"gao" ) ); g_Table.insert( PairType( -18201, *(int*)"ge" ) ); g_Table.insert( PairType( -18184, *(int*)"gei" ) ); g_Table.insert( PairType( -18183, *(int*)"gen" ) ); g_Table.insert( PairType( -18181, *(int*)"geng" ) ); g_Table.insert( PairType( -18012, *(int*)"gong" ) ); g_Table.insert( PairType( -17997, *(int*)"gou" ) ); g_Table.insert( PairType( -17988, *(int*)"gu" ) ); g_Table.insert( PairType( -17970, *(int*)"gua" ) ); g_Table.insert( PairType( -17964, *(int*)"guai" ) ); g_Table.insert( PairType( -17961, *(int*)"guan" ) ); g_Table.insert( PairType( -17950, *(int*)"guang" ) ); g_Table.insert( PairType( -17947, *(int*)"gui" ) ); g_Table.insert( PairType( -17931, *(int*)"gun" ) ); g_Table.insert( PairType( -17928, *(int*)"guo" ) ); g_Table.insert( PairType( -17922, *(int*)"ha" ) ); g_Table.insert( PairType( -17759, *(int*)"hai" ) ); g_Table.insert( PairType( -17752, *(int*)"han" ) ); g_Table.insert( PairType( -17733, *(int*)"hang" ) ); g_Table.insert( PairType( -17730, *(int*)"hao" ) ); g_Table.insert( PairType( -17721, *(int*)"he" ) ); g_Table.insert( PairType( -17703, *(int*)"hei" ) ); g_Table.insert( PairType( -17701, *(int*)"hen" ) ); g_Table.insert( PairType( -17697, *(int*)"heng" ) ); g_Table.insert( PairType( -17692, *(int*)"hong" ) ); g_Table.insert( PairType( -17683, *(int*)"hou" ) ); g_Table.insert( PairType( -17676, *(int*)"hu" ) ); g_Table.insert( PairType( -17496, *(int*)"hua" ) ); g_Table.insert( PairType( -17487, *(int*)"huai" ) ); g_Table.insert( PairType( -17482, *(int*)"huan" ) ); g_Table.insert( PairType( -17468, *(int*)"huang" ) ); g_Table.insert( PairType( -17454, *(int*)"hui" ) ); g_Table.insert( PairType( -17433, *(int*)"hun" ) ); g_Table.insert( PairType( -17427, *(int*)"huo" ) ); g_Table.insert( PairType( -17417, *(int*)"ji" ) ); g_Table.insert( PairType( -17202, *(int*)"jia" ) ); g_Table.insert( PairType( -17185, *(int*)"jian" ) ); g_Table.insert( PairType( -16983, *(int*)"jiang" ) ); g_Table.insert( PairType( -16970, *(int*)"jiao" ) ); g_Table.insert( PairType( -16942, *(int*)"jie" ) ); g_Table.insert( PairType( -16915, *(int*)"jin" ) ); g_Table.insert( PairType( -16733, *(int*)"jing" ) ); g_Table.insert( PairType( -16708, *(int*)"jiong" ) ); g_Table.insert( PairType( -16706, *(int*)"jiu" ) ); g_Table.insert( PairType( -16689, *(int*)"ju" ) ); g_Table.insert( PairType( -16664, *(int*)"juan" ) ); g_Table.insert( PairType( -16657, *(int*)"jue" ) ); g_Table.insert( PairType( -16647, *(int*)"jun" ) ); g_Table.insert( PairType( -16474, *(int*)"ka" ) ); g_Table.insert( PairType( -16470, *(int*)"kai" ) ); g_Table.insert( PairType( -16465, *(int*)"kan" ) ); g_Table.insert( PairType( -16459, *(int*)"kang" ) ); g_Table.insert( PairType( -16452, *(int*)"kao" ) ); g_Table.insert( PairType( -16448, *(int*)"ke" ) ); g_Table.insert( PairType( -16433, *(int*)"ken" ) ); g_Table.insert( PairType( -16429, *(int*)"keng" ) ); g_Table.insert( PairType( -16427, *(int*)"kong" ) ); g_Table.insert( PairType( -16423, *(int*)"kou" ) ); g_Table.insert( PairType( -16419, *(int*)"ku" ) ); g_Table.insert( PairType( -16412, *(int*)"kua" ) ); g_Table.insert( PairType( -16407, *(int*)"kuai" ) ); g_Table.insert( PairType( -16403, *(int*)"kuan" ) ); g_Table.insert( PairType( -16401, *(int*)"kuang" ) ); g_Table.insert( PairType( -16393, *(int*)"kui" ) ); g_Table.insert( PairType( -16220, *(int*)"kun" ) ); g_Table.insert( PairType( -16216, *(int*)"kuo" ) ); g_Table.insert( PairType( -16212, *(int*)"la" ) ); g_Table.insert( PairType( -16205, *(int*)"lai" ) ); g_Table.insert( PairType( -16202, *(int*)"lan" ) ); g_Table.insert( PairType( -16187, *(int*)"lang" ) ); g_Table.insert( PairType( -16180, *(int*)"lao" ) ); g_Table.insert( PairType( -16171, *(int*)"le" ) ); g_Table.insert( PairType( -16169, *(int*)"lei" ) ); g_Table.insert( PairType( -16158, *(int*)"leng" ) ); g_Table.insert( PairType( -16155, *(int*)"li" ) ); g_Table.insert( PairType( -15959, *(int*)"lia" ) ); g_Table.insert( PairType( -15958, *(int*)"lian" ) ); g_Table.insert( PairType( -15944, *(int*)"liang" ) ); g_Table.insert( PairType( -15933, *(int*)"liao" ) ); g_Table.insert( PairType( -15920, *(int*)"lie" ) ); g_Table.insert( PairType( -15915, *(int*)"lin" ) ); g_Table.insert( PairType( -15903, *(int*)"ling" ) ); g_Table.insert( PairType( -15889, *(int*)"liu" ) ); g_Table.insert( PairType( -15878, *(int*)"long" ) ); g_Table.insert( PairType( -15707, *(int*)"lou" ) ); g_Table.insert( PairType( -15701, *(int*)"lu" ) ); g_Table.insert( PairType( -15681, *(int*)"lv" ) ); g_Table.insert( PairType( -15667, *(int*)"luan" ) ); g_Table.insert( PairType( -15661, *(int*)"lue" ) ); g_Table.insert( PairType( -15659, *(int*)"lun" ) ); g_Table.insert( PairType( -15652, *(int*)"luo" ) ); g_Table.insert( PairType( -15640, *(int*)"ma" ) ); g_Table.insert( PairType( -15631, *(int*)"mai" ) ); g_Table.insert( PairType( -15625, *(int*)"man" ) ); g_Table.insert( PairType( -15454, *(int*)"mang" ) ); g_Table.insert( PairType( -15448, *(int*)"mao" ) ); g_Table.insert( PairType( -15436, *(int*)"me" ) ); g_Table.insert( PairType( -15435, *(int*)"mei" ) ); g_Table.insert( PairType( -15419, *(int*)"men" ) ); g_Table.insert( PairType( -15416, *(int*)"meng" ) ); g_Table.insert( PairType( -15408, *(int*)"mi" ) ); g_Table.insert( PairType( -15394, *(int*)"mian" ) ); g_Table.insert( PairType( -15385, *(int*)"miao" ) ); g_Table.insert( PairType( -15377, *(int*)"mie" ) ); g_Table.insert( PairType( -15375, *(int*)"min" ) ); g_Table.insert( PairType( -15369, *(int*)"ming" ) ); g_Table.insert( PairType( -15363, *(int*)"miu" ) ); g_Table.insert( PairType( -15362, *(int*)"mo" ) ); g_Table.insert( PairType( -15183, *(int*)"mou" ) ); g_Table.insert( PairType( -15180, *(int*)"mu" ) ); g_Table.insert( PairType( -15165, *(int*)"na" ) ); g_Table.insert( PairType( -15158, *(int*)"nai" ) ); g_Table.insert( PairType( -15153, *(int*)"nan" ) ); g_Table.insert( PairType( -15150, *(int*)"nang" ) ); g_Table.insert( PairType( -15149, *(int*)"nao" ) ); g_Table.insert( PairType( -15144, *(int*)"ne" ) ); g_Table.insert( PairType( -15143, *(int*)"nei" ) ); g_Table.insert( PairType( -15141, *(int*)"nen" ) ); g_Table.insert( PairType( -15140, *(int*)"neng" ) ); g_Table.insert( PairType( -15139, *(int*)"ni" ) ); g_Table.insert( PairType( -15128, *(int*)"nian" ) ); g_Table.insert( PairType( -15121, *(int*)"niang" ) ); g_Table.insert( PairType( -15119, *(int*)"niao" ) ); g_Table.insert( PairType( -15117, *(int*)"nie" ) ); g_Table.insert( PairType( -15110, *(int*)"nin" ) ); g_Table.insert( PairType( -15109, *(int*)"ning" ) ); g_Table.insert( PairType( -14941, *(int*)"niu" ) ); g_Table.insert( PairType( -14937, *(int*)"nong" ) ); g_Table.insert( PairType( -14933, *(int*)"nu" ) ); g_Table.insert( PairType( -14930, *(int*)"nv" ) ); g_Table.insert( PairType( -14929, *(int*)"nuan" ) ); g_Table.insert( PairType( -14928, *(int*)"nue" ) ); g_Table.insert( PairType( -14926, *(int*)"nuo" ) ); g_Table.insert( PairType( -14922, *(int*)"o" ) ); g_Table.insert( PairType( -14921, *(int*)"ou" ) ); g_Table.insert( PairType( -14914, *(int*)"pa" ) ); g_Table.insert( PairType( -14908, *(int*)"pai" ) ); g_Table.insert( PairType( -14902, *(int*)"pan" ) ); g_Table.insert( PairType( -14894, *(int*)"pang" ) ); g_Table.insert( PairType( -14889, *(int*)"pao" ) ); g_Table.insert( PairType( -14882, *(int*)"pei" ) ); g_Table.insert( PairType( -14873, *(int*)"pen" ) ); g_Table.insert( PairType( -14871, *(int*)"peng" ) ); g_Table.insert( PairType( -14857, *(int*)"pi" ) ); g_Table.insert( PairType( -14678, *(int*)"pian" ) ); g_Table.insert( PairType( -14674, *(int*)"piao" ) ); g_Table.insert( PairType( -14670, *(int*)"pie" ) ); g_Table.insert( PairType( -14668, *(int*)"pin" ) ); g_Table.insert( PairType( -14663, *(int*)"ping" ) ); g_Table.insert( PairType( -14654, *(int*)"po" ) ); g_Table.insert( PairType( -14645, *(int*)"pu" ) ); g_Table.insert( PairType( -14630, *(int*)"qi" ) ); g_Table.insert( PairType( -14594, *(int*)"qia" ) ); g_Table.insert( PairType( -14429, *(int*)"qian" ) ); g_Table.insert( PairType( -14407, *(int*)"qiang" ) ); g_Table.insert( PairType( -14399, *(int*)"qiao" ) ); g_Table.insert( PairType( -14384, *(int*)"qie" ) ); g_Table.insert( PairType( -14379, *(int*)"qin" ) ); g_Table.insert( PairType( -14368, *(int*)"qing" ) ); g_Table.insert( PairType( -14355, *(int*)"qiong" ) ); g_Table.insert( PairType( -14353, *(int*)"qiu" ) ); g_Table.insert( PairType( -14345, *(int*)"qu" ) ); g_Table.insert( PairType( -14170, *(int*)"quan" ) ); g_Table.insert( PairType( -14159, *(int*)"que" ) ); g_Table.insert( PairType( -14151, *(int*)"qun" ) ); g_Table.insert( PairType( -14149, *(int*)"ran" ) ); g_Table.insert( PairType( -14145, *(int*)"rang" ) ); g_Table.insert( PairType( -14140, *(int*)"rao" ) ); g_Table.insert( PairType( -14137, *(int*)"re" ) ); g_Table.insert( PairType( -14135, *(int*)"ren" ) ); g_Table.insert( PairType( -14125, *(int*)"reng" ) ); g_Table.insert( PairType( -14123, *(int*)"ri" ) ); g_Table.insert( PairType( -14122, *(int*)"rong" ) ); g_Table.insert( PairType( -14112, *(int*)"rou" ) ); g_Table.insert( PairType( -14109, *(int*)"ru" ) ); g_Table.insert( PairType( -14099, *(int*)"ruan" ) ); g_Table.insert( PairType( -14097, *(int*)"rui" ) ); g_Table.insert( PairType( -14094, *(int*)"run" ) ); g_Table.insert( PairType( -14092, *(int*)"ruo" ) ); g_Table.insert( PairType( -14090, *(int*)"sa" ) ); g_Table.insert( PairType( -14087, *(int*)"sai" ) ); g_Table.insert( PairType( -14083, *(int*)"san" ) ); g_Table.insert( PairType( -13917, *(int*)"sang" ) ); g_Table.insert( PairType( -13914, *(int*)"sao" ) ); g_Table.insert( PairType( -13910, *(int*)"se" ) ); g_Table.insert( PairType( -13907, *(int*)"sen" ) ); g_Table.insert( PairType( -13906, *(int*)"seng" ) ); g_Table.insert( PairType( -13905, *(int*)"sha" ) ); g_Table.insert( PairType( -13896, *(int*)"shai" ) ); g_Table.insert( PairType( -13894, *(int*)"shan" ) ); g_Table.insert( PairType( -13878, *(int*)"shang" ) ); g_Table.insert( PairType( -13870, *(int*)"shao" ) ); g_Table.insert( PairType( -13859, *(int*)"she" ) ); g_Table.insert( PairType( -13847, *(int*)"shen" ) ); g_Table.insert( PairType( -13831, *(int*)"sheng" ) ); g_Table.insert( PairType( -13658, *(int*)"shi" ) ); g_Table.insert( PairType( -13611, *(int*)"shou" ) ); g_Table.insert( PairType( -13601, *(int*)"shu" ) ); g_Table.insert( PairType( -13406, *(int*)"shua" ) ); g_Table.insert( PairType( -13404, *(int*)"shuai" ) ); g_Table.insert( PairType( -13400, *(int*)"shuan" ) ); g_Table.insert( PairType( -13398, *(int*)"shuang" ) ); g_Table.insert( PairType( -13395, *(int*)"shui" ) ); g_Table.insert( PairType( -13391, *(int*)"shun" ) ); g_Table.insert( PairType( -13387, *(int*)"shuo" ) ); g_Table.insert( PairType( -13383, *(int*)"si" ) ); g_Table.insert( PairType( -13367, *(int*)"song" ) ); g_Table.insert( PairType( -13359, *(int*)"sou" ) ); g_Table.insert( PairType( -13356, *(int*)"su" ) ); g_Table.insert( PairType( -13343, *(int*)"suan" ) ); g_Table.insert( PairType( -13340, *(int*)"sui" ) ); g_Table.insert( PairType( -13329, *(int*)"sun" ) ); g_Table.insert( PairType( -13326, *(int*)"suo" ) ); g_Table.insert( PairType( -13318, *(int*)"ta" ) ); g_Table.insert( PairType( -13147, *(int*)"tai" ) ); g_Table.insert( PairType( -13138, *(int*)"tan" ) ); g_Table.insert( PairType( -13120, *(int*)"tang" ) ); g_Table.insert( PairType( -13107, *(int*)"tao" ) ); g_Table.insert( PairType( -13096, *(int*)"te" ) ); g_Table.insert( PairType( -13095, *(int*)"teng" ) ); g_Table.insert( PairType( -13091, *(int*)"ti" ) ); g_Table.insert( PairType( -13076, *(int*)"tian" ) ); g_Table.insert( PairType( -13068, *(int*)"tiao" ) ); g_Table.insert( PairType( -13063, *(int*)"tie" ) ); g_Table.insert( PairType( -13060, *(int*)"ting" ) ); g_Table.insert( PairType( -12888, *(int*)"tong" ) ); g_Table.insert( PairType( -12875, *(int*)"tou" ) ); g_Table.insert( PairType( -12871, *(int*)"tu" ) ); g_Table.insert( PairType( -12860, *(int*)"tuan" ) ); g_Table.insert( PairType( -12858, *(int*)"tui" ) ); g_Table.insert( PairType( -12852, *(int*)"tun" ) ); g_Table.insert( PairType( -12849, *(int*)"tuo" ) ); g_Table.insert( PairType( -12838, *(int*)"wa" ) ); g_Table.insert( PairType( -12831, *(int*)"wai" ) ); g_Table.insert( PairType( -12829, *(int*)"wan" ) ); g_Table.insert( PairType( -12812, *(int*)"wang" ) ); g_Table.insert( PairType( -12802, *(int*)"wei" ) ); g_Table.insert( PairType( -12607, *(int*)"wen" ) ); g_Table.insert( PairType( -12597, *(int*)"weng" ) ); g_Table.insert( PairType( -12594, *(int*)"wo" ) ); g_Table.insert( PairType( -12585, *(int*)"wu" ) ); g_Table.insert( PairType( -12556, *(int*)"xi" ) ); g_Table.insert( PairType( -12359, *(int*)"xia" ) ); g_Table.insert( PairType( -12346, *(int*)"xian" ) ); g_Table.insert( PairType( -12320, *(int*)"xiang" ) ); g_Table.insert( PairType( -12300, *(int*)"xiao" ) ); g_Table.insert( PairType( -12120, *(int*)"xie" ) ); g_Table.insert( PairType( -12099, *(int*)"xin" ) ); g_Table.insert( PairType( -12089, *(int*)"xing" ) ); g_Table.insert( PairType( -12074, *(int*)"xiong" ) ); g_Table.insert( PairType( -12067, *(int*)"xiu" ) ); g_Table.insert( PairType( -12058, *(int*)"xu" ) ); g_Table.insert( PairType( -12039, *(int*)"xuan" ) ); g_Table.insert( PairType( -11867, *(int*)"xue" ) ); g_Table.insert( PairType( -11861, *(int*)"xun" ) ); g_Table.insert( PairType( -11847, *(int*)"ya" ) ); g_Table.insert( PairType( -11831, *(int*)"yan" ) ); g_Table.insert( PairType( -11798, *(int*)"yang" ) ); g_Table.insert( PairType( -11781, *(int*)"yao" ) ); g_Table.insert( PairType( -11604, *(int*)"ye" ) ); g_Table.insert( PairType( -11589, *(int*)"yi" ) ); g_Table.insert( PairType( -11536, *(int*)"yin" ) ); g_Table.insert( PairType( -11358, *(int*)"ying" ) ); g_Table.insert( PairType( -11340, *(int*)"yo" ) ); g_Table.insert( PairType( -11339, *(int*)"yong" ) ); g_Table.insert( PairType( -11324, *(int*)"you" ) ); g_Table.insert( PairType( -11303, *(int*)"yu" ) ); g_Table.insert( PairType( -11097, *(int*)"yuan" ) ); g_Table.insert( PairType( -11077, *(int*)"yue" ) ); g_Table.insert( PairType( -11067, *(int*)"yun" ) ); g_Table.insert( PairType( -11055, *(int*)"za" ) ); g_Table.insert( PairType( -11052, *(int*)"zai" ) ); g_Table.insert( PairType( -11045, *(int*)"zan" ) ); g_Table.insert( PairType( -11041, *(int*)"zang" ) ); g_Table.insert( PairType( -11038, *(int*)"zao" ) ); g_Table.insert( PairType( -11024, *(int*)"ze" ) ); g_Table.insert( PairType( -11020, *(int*)"zei" ) ); g_Table.insert( PairType( -11019, *(int*)"zen" ) ); g_Table.insert( PairType( -11018, *(int*)"zeng" ) ); g_Table.insert( PairType( -11014, *(int*)"zha" ) ); g_Table.insert( PairType( -10838, *(int*)"zhai" ) ); g_Table.insert( PairType( -10832, *(int*)"zhan" ) ); g_Table.insert( PairType( -10815, *(int*)"zhang" ) ); g_Table.insert( PairType( -10800, *(int*)"zhao" ) ); g_Table.insert( PairType( -10790, *(int*)"zhe" ) ); g_Table.insert( PairType( -10780, *(int*)"zhen" ) ); g_Table.insert( PairType( -10764, *(int*)"zheng" ) ); g_Table.insert( PairType( -10587, *(int*)"zhi" ) ); g_Table.insert( PairType( -10544, *(int*)"zhong" ) ); g_Table.insert( PairType( -10533, *(int*)"zhou" ) ); g_Table.insert( PairType( -10519, *(int*)"zhu" ) ); g_Table.insert( PairType( -10331, *(int*)"zhua" ) ); g_Table.insert( PairType( -10329, *(int*)"zhuai" ) ); g_Table.insert( PairType( -10328, *(int*)"zhuan" ) ); g_Table.insert( PairType( -10322, *(int*)"zhuang" ) ); g_Table.insert( PairType( -10315, *(int*)"zhui" ) ); g_Table.insert( PairType( -10309, *(int*)"zhun" ) ); g_Table.insert( PairType( -10307, *(int*)"zhuo" ) ); g_Table.insert( PairType( -10296, *(int*)"zi" ) ); g_Table.insert( PairType( -10281, *(int*)"zong" ) ); g_Table.insert( PairType( -10274, *(int*)"zou" ) ); g_Table.insert( PairType( -10270, *(int*)"zu" ) ); g_Table.insert( PairType( -10262, *(int*)"zuan" ) ); g_Table.insert( PairType( -10260, *(int*)"zui" ) ); g_Table.insert( PairType( -10256, *(int*)"zun" ) ); g_Table.insert( PairType( -10254, *(int*)"zuo" ) ); }
posted on 2004年06月26日 8:31 AM
Comments
# 回复:【原创醒目】为汉字注音的程序代码
creamdog
靠,格式全没了!!
大家用VS打开以后,按Ctrl+K、Ctrl+F
Posted @ 2004-06-26 8:43 AM
# 回复:【原创醒目】为汉字注音的C程序代码,支持C编译的都用能!
sdlcc
代码保存后在vc中按ctrl+A,alt+F8重新格式化一下就可以了。
Posted @ 2004-06-26 10:19 AM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
mutalisk
typedef map TableType;
这一句掉了东西
Posted @ 2004-07-06 4:22 PM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
suki
为什么我在VC6里编译不能通过.typedef map TableType;
TableType g_Table;这两句有错
Posted @ 2004-07-19 2:36 PM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
suki
请回复
Posted @ 2004-07-19 2:37 PM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
creamdog
修正了,网页格式问题
Posted @ 2004-07-20 8:05 PM
# 回复:【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
RookieStar
老大,多音字问题怎么办?
比如我在程序里通过输入hang得到“行”,而你的程序给我“xing”这个答案……
VS.NET下编译发现少了一句#include<IOSTREAM>
相关文章推荐
- 【原创醒目】为汉字注音的C程序代码,支持win32下C编译的都能用!
- 三种php汉字英文验证代码生成程序(1/4)
- 汉字自动注音程序
- 汉字自己主动注音程序
- 微信小程序倒计时功能实现代码
- ASP.NET程序中常用的三十三种代码
- shell替换程序里的代码
- phoneGap中android程序自动更新代码(适合Android4.0之后版本)
- ASP.NET程序中常用的三十三种代码
- 用正则表达式限制文本框只能输入数字,小数点,英文字母,汉字等各类代码
- asp.net程序中最常用的三十三种编程代码标签
- 让程序进入后台后能长久运行代码
- ASP.NET程序中常用的三十三种代码
- iphone ios XCode4如何调试程序忽然崩溃而找不到挂的代码
- 古城钟楼微博地支报时程序铛,100行代码实现,价值一天20万粉丝
- 注册程序中不同意则按钮submit变成灰色,无法提交的代码
- ASP.NET程序中常用的三十三种代码(4)
- Linux程序代码移植到Windows的简单方法(转)
- 代码程序实现域密码和domino密码的统一性及权限控制和日志统计功能
- 实现ASP缓存技术程序代码