将非数字字符串另存为整数 [英] Saving a non-numeric string as an integer

查看:80
本文介绍了将非数字字符串另存为整数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将非数字字符串(即"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.


这篇关于将非数字字符串另存为整数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆