最好的禮物初中的作文(精選106篇)
strstr(s1,s2)是一個經(jīng)常用的函數(shù),他的作用就是在字符串s1中尋找字符串s2如果找到了就返回指針,否則返回NULL。

下面是這個函數(shù)的一個簡單實現(xiàn):
static const char* _strstr(const char* s1, const char* s2)
{
assert(s2 && s1);
const char* p=s1, *r=s2;
while(*p!=”)
{
while(*p++==*r++);
if(*r==”)
return p;
else
{
r=s2;
p=++s1;
}
}
return NULL;
}
【最好的禮物初中的作文】相關(guān)文章:
最好的禮物作文11-19
最好禮物作文(經(jīng)典)03-08
(經(jīng)典)最好的禮物作文04-16
最好禮物作文01-11
(精品)最好的禮物作文01-03
最好的禮物作文(精品)03-01
[精]最好禮物作文02-14
最好禮物作文[熱門]03-06
(集合)最好禮物作文11-18
- 初中英語作文:最好的禮物 The Best Gift 推薦度:
- 相關(guān)推薦