sheldon_blogs

2023年1月28日

C++提取字符串中的整数

摘要: 代码示例: int ExtractNumber(char* str) { int numberCnt = 0; string s = str; size_t begin = 0, end = 0; if(!str){ return 0; } while(end != std::string::npo 阅读全文

posted @ 2023-01-28 17:05 sheldon_blogs 阅读(922) 评论(0) 推荐(0) 编辑

导航