String 转 int
来源:互联网 发布:看不到网络上文件共享 编辑:程序博客网 时间:2024/06/07 04:03
java:
String str="20";
int year=(str.charAt(0)-'0')*10;
System.out.println(year);
输出为:20
c:
String str="20";
int year=(str[0]-'0')*10;
0 0
- [转]int转string string转int
- int转string string转int
- c# int 转 string string 转 int
- int转string,string转int
- c++ string转int,int转string
- int转string/ string 转Int
- String转int转String
- C++ int转string string转int int转二进制
- String 转 int
- string 转 int 函数
- int 转 string
- string 转 int
- string 转 int
- int转string
- int 转 string
- int转string
- String 转int
- c++ int 转 string
- iOS学习笔记—— Storyboard里面的几种Segue区别:push,modal,popover,replace和custom
- ARM中断
- quick-cocos2dx win 7 编译环境配置及真机调试
- ARM存储管理
- off转obj
- String 转 int
- C++ 字符串转数字 数字转字符串
- poj 2570 Fiber Network Floyd
- UIVIew
- ffmpeg 命令集举例
- php+mysql+apach环境的配置
- 迷茫了好一阵决定做WEB前端
- poj 1151 Atlantis 二分查找+离散化
- POJ-3026 Borg Maze(最小生成树)