#include <iostream> #include <assert.h> #include <string.h> using namespace std; const char * strstr1 (const char * src, const char * des) { assert ((src!=NULL)&&(des!=NULL)); int srcLen = strlen(src); int desLen = strlen(des); if ((srcLen<desLen) || (srcLen==0) || (desLen==0)) { return NULL; } const char * p = NULL; const char * q = NULL; int count = srcLen - desLen + 1; while (*src != '