将非数字字符串另存为整数

问题描述:

我想将非数字字符串(即"General Electric")保存为要在函数中使用的整数,然后将该整数转换为字符串"General Electric".

I would like to save a non numeric string ie "General Electric" as an integer to be used in a function, and later convert that integer to the string "General Electric"

您无法传递表示"General Electric"的int,除非您具有字符串查找表,否则数字本身不包含字符串.那里的数据太多了.
There''s no way you can pass an int that denotes ''General Electric'', unless you have a look up table of strings, the number does not contain the string per se. There''s just too much data there.