字符串

7篇文章
1 cpp-base64 本次要使用的是Github上开源的base64编解码库:https://github.com/ReneNyffenegger/cpp-base64,也是我在实际项目中经常使用…
1 当前时间转字符串 # -*- coding: utf-8 -*- import time if __name__ == '__main__': # 以年_月_日_时_分_秒形式输出时间字符串,示例…
1 字符串str转list的方法总结 # -*- coding: utf-8 -*- if __name__ == '__main__': temp_str = '1once time is wast…
1 AES加密算法 Crypto++/CryptoPP加解密库官网:https://www.cryptopp.com/ 在写桌面程序的时候一些自定义的数据文件不可避免的需要放在本地,通常这种数据文件保…
1 C++阿拉伯数字字符串转换为中文读法的中文字符串,不支持小数点 最近碰到一个这样的需求,就是将阿拉伯数字字符串转换为中文读法的中文字符串,形如将 "199922" 转换为: "十九万九千九百二十二…
1 C++ std::string输出双引号到字符串 输出双引号“”到字符串中可以通过添加转义字符"\"对双引号进行转义, 可参考代码如下: int main() { string str = "\"…
1 代码示例 #include <iostream> using namespace std; int GetRepeatCountInStr(const std::string &…

关注我们的公众号

微信公众号