首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 将一个C++枚举字符串!将枚举数的字符串名称和使用它们来获得相应的数值。

将一个C++枚举字符串!将枚举数的字符串名称和使用它们来获得相应的数值。

资 源 简 介

ConvertEnumToStrings is a program I wrote to enable easy conversion from an enum to strings. By this, I mean, the program will generate some functions to file for retrieving the string names of the enumerators and their int values, as well as a map which you can iterate through, and use the iterator->second to get the corresponding numerical value of the enumerator you"re at, and/or use a particular enumerator name"s string to find the corresponding numerical mapped value in the map. It also generates a few other functions to file. If you"re interested, check out the discussion topic at this link: http://cboard.cprogramming.com/projects-job-recruitment/127488-free-program-im-sharing-convertenumtostrings-7.html#post960173

文 件 列 表

ConvertEnumToStrings
ConvertEnumToStrings.h
modules
ConvertEnumToStrings.cpp

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP