随笔分类 -  c/c++

摘要:https://www.cnblogs.com/slime/archive/2009/11/09/1598741.html https://blog.csdn.net/ljx0305/article/details/19156271 阅读全文
posted @ 2020-01-01 15:29 Ren.Yu 阅读(147) 评论(0) 推荐(0)
摘要:1 std::vector<std::string> split(const std::string &input) { 2 const std::string alpha {"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"}; 3 std 阅读全文
posted @ 2019-12-12 01:01 Ren.Yu 阅读(142) 评论(0) 推荐(0)
摘要:1 #include <string> 2 #include <stack> 3 #include <vector> 4 5 using std::string; 6 using std::vector; 7 using std::stack; 8 9 class Element { 10 publ 阅读全文
posted @ 2019-07-21 21:12 Ren.Yu 阅读(707) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 typedef unsigned long long ullong; 4 using std::string; 5 6 ullong factorial(ullong i) { 7 if (i > 1) { 8 return i * factorial(i - 1); 9 } 10 i... 阅读全文
posted @ 2019-07-07 18:33 Ren.Yu 阅读(458) 评论(0) 推荐(0)
摘要:不需要检查test.txt是否存在 下面的函数可以实现顺序读取文件,且限制每次读的最大行数 阅读全文
posted @ 2016-08-30 23:31 Ren.Yu 阅读(708) 评论(0) 推荐(0)