- 博客(2)
- 收藏
- 关注
原创 C++字符串旋转3种方法实现
//左旋转字符串abcdefgh->cdefghab//循环递归法#include #include using namespace std;void runstring(char *str,int n){ int i = 0; int j = i+n; int len = strlen(str); char *p = str; char ch; while(j<len)
2015-05-29 20:15:29 2962
原创 String类
#include #include using namespace std;class Count{ public: Count():number(1){} bool countsub() { number--; } bool countadd() { number++; } bool IsOne() { if(number==1)return true;
2015-05-29 20:14:10 372
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人