首页| 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
  • Zzz 1天前 成为了本站会员

  • Katou Megumi 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 流浪 1天前 成为了本站会员

  • 也是一生 1天前 成为了本站会员

  • king666 2天前 成为了本站会员

  • ﹏約啶℡ 2天前 成为了本站会员

  • Long for 2天前 成为了本站会员

  • 2天前 成为了本站会员

  • 金. 2天前 成为了本站会员

0.192022s