[置顶] LeetCode中String to Integer (atoi) 字符串转换成整数
摘要:
int atoi(const char *str) { long long result = 0; while (*str==' ')str++; int flag=0; if (*str == '-' || *str == '+') { flag = (*str == '-') ? -1 : 1... 阅读全文
posted @ 2014-11-23 14:37 suyuanhxx 阅读(189) 评论(0) 推荐(0)
浙公网安备 33010602011771号