摘要: 题目 ![](https://img2023.cnblogs.com/blog/2679751/202307/2679751-20230719221809046-913002306.png) ``` class Solution { public: int strToInt(string str) 阅读全文
posted @ 2023-07-19 22:24 孜孜不倦fly 阅读(11) 评论(0) 推荐(0)
摘要: 题目: //遇到数字:一定合法 //遇到'.'且合法需要满足条件:之前没出现过'.',之前没出现过'e' //遇到'e'且合法需要满足条件:之前没出现过'e',之前出现过整数 //遇到'+'或者'-'且合法需要满足条件:位于字符串第一位,或者紧跟在'e'之后 class Solution { pub 阅读全文
posted @ 2023-07-19 20:56 孜孜不倦fly 阅读(36) 评论(0) 推荐(0)