c# 求 指导

xiejing1995 2017-12-07 12:19:17

public ITEM_PX px;
public ITEM_OX ox;
}
#region 枚举
public enum ITEM_PX
{
ITEM_NULL = -1,
ITEM_ZERO = 0,
ITEM_B = 1,//ba
ITEM_C = 2,
ITEM_D = 3,
ITEM_F = 4,
ITEM_G = 5,
ITEM_H = 6,
ITEM_J = 7,
ITEM_K = 8,
ITEM_L = 9,
ITEM_M = 10,
ITEM_N = 11,//c4
ITEM_P = 12,
ITEM_Q = 13,
ITEM_R = 14,
ITEM_S = 15,
ITEM_T = 16,
ITEM_W = 17,
ITEM_X = 18,
ITEM_Y = 19,
ITEM_Z = 20, d5

}
public enum ITEM_OX
{
ITEM_NULL = -1,
ITEM_ZERO = 0,
ITEM_A = 1,
ITEM_AI = 2,
xxxITEM_AN = 3,
xxxITEM_ANG = 4,
ITEM_AO = 5,
ITEM_E = 6,
ITEM_EI = 7,
xxxITEM_EN = 8,
xxxITEM_ENG = 9,
ITEM_I = 10,
ITEM_IA = 11,
xxxITEM_IAN = 12,
xxxITEM_IANG = 13,
ITEM_IAO = 14,
ITEM_IE = 15,
xxxITEM_IN = 16,
xxxITEM_ING = 17,
xxxITEM_IONG = 18,
ITEM_IU = 19,
ITEM_O = 20,
xxxITEM_ONG = 21,
ITEM_OU = 22,
ITEM_U = 23,
ITEM_UA = 24,
ITEM_UAI = 25,
xxxITEM_UAN = 26,
xxxITEM_UANG = 27,
ITEM_UE = 28,
ITEM_UI = 29,
ITEM_UN = 30,
ITEM_UO = 31,
ITEM_V = 32,
xxxITEM_ER = 33,
}
#endregion
static void Main(string[] args)
{
string test = "菜";
POnumber TEST = new POnumber();

POnumber.POnum c1;
c1 = TEST.retPOnum(test);
Console.WriteLine(c1.px);
Console.WriteLine(c1.ox);



Console.ReadLine();
程序运行结果为ITEM-C ITEM-AI; 我现在想把结果改为ITEM-C ITEM-AI在枚举里面对应的数字 2 2;我该怎么做
...全文
95 3 点赞 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
exception92 2017-12-07
(int)c1.px
  • 打赏
  • 举报
回复
秋的红果实 2017-12-07
引用 1 楼 duanzi_peng 的回复:
(int)c1.px
+
  • 打赏
  • 举报
回复
xiejing1995 2017-12-07
引用 1 楼 duanzi_peng 的回复:
(int)c1.px
这个也太没有内容了啊
  • 打赏
  • 举报
回复
相关推荐
发帖
C#
加入

10.6w+

社区成员

.NET技术 C#
申请成为版主
帖子事件
创建了帖子
2017-12-07 12:19
社区公告

让您成为最强悍的C#开发者