淡定从容,宁静致远
全部博文(329)
发布时间:2014-09-09 20:45:13
#include<stdio.h> int strcmp(const char *str1,const char *str2) { while((*str1==*str2)&&*str1!='\0') { &nb.........【阅读全文】
发布时间:2014-09-09 20:36:52
char *my_strstr(const char *str, const char *sub_str) { int i,j; int tem = 0; for(i = 0; str[i] != '\0'; i.........【阅读全文】
发布时间:2014-09-09 20:22:41
char *strcpy(char *dst,const char *src) { assert(dst != NULL); assert(src != NULL); char *ret = .........【阅读全文】
发布时间:2014-09-09 20:20:44
#include <stdio.h> char *strcat(char *str1, char *str2) { char *pt = str1; if((str1==NULL)||(str2==NULL)) retu.........【阅读全文】
发布时间:2014-09-09 09:53:04
#include <stdio.h>#include <stdlib.h>typedef struct node{int data;struct node *next;}StackNode;//置空栈StackNode* Init_LinkStack(StackNode *top){top=NULL;return top;}//判空栈int Empty_LinkStack(StackNode*top){if(top==NULL){return 1;}else{return 0;}}//入栈StackNode* Pu.........【阅读全文】