![](https://i-blog.csdnimg.cn/columns/default/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
C/C++
IT杀手
学者,编程专业户,软件职业杀手
展开
-
栈的操作
#include using namespace std; template //定义一个模板 class Stack { private: int SIZE; //栈的大小 int top; //栈顶的位置 T * stac; //T类型的数组 public: S原创 2014-12-29 11:37:29 · 434 阅读 · 0 评论 -
求一个字符串中某个子串的个数(C++)
int count_sunstr(char* substr,char* str) { int count = 0; int i,j; for(i =0;i { for(j = 0;j { if(*(substr+j)!=*(str+i+j)) {原创 2014-12-29 11:02:14 · 2916 阅读 · 0 评论