第1个回答 2011-08-24
<script type="text/javascript">
var str="爱人Is this all there is爱人";
var patt1=/(爱人)/;
document.write(str.match(patt1));
</script>
第2个回答 2011-08-24
int count(char ch,char *pStr)//第一个参数为要统计的字符,第二个参数为字符串,返回值为出现次数
{
int num=0;
while(*pStr)
{
if(ch==*pStr)
{
num++;
}
pStr++;
}
return num;
}本回答被提问者采纳
第3个回答 2011-08-26
char *s作参数的话,字符串必须以\0结尾
char str0[9]=;//
第4个回答 2011-08-25
char *s作参数的话,字符串必须以\0结尾
char str0[9]=;//
第5个回答 2011-08-24
char *s作参数的话,字符串必须以\0结尾
char str0[9]=;//
第6个回答 2011-08-24
<script type="text/javascript">
var str="爱人Is this all there is爱人";
var patt1=/(爱人)/;
document.write(str.match(patt1));
</script>
第7个回答 2011-08-24
int count(char ch,char *pStr)//第一个参数为要统计的字符,第二个参数为字符串,返回值为出现次数
{
int num=0;
while(*pStr)
{
if(ch==*pStr)
{
num++;
}
pStr++;
}
return num;
}本回答被提问者采纳
第8个回答 2011-08-26
char *s作参数的话,字符串必须以\0结尾
char str0[9]=;//
第9个回答 2011-08-25
char *s作参数的话,字符串必须以\0结尾
char str0[9]=;//
第10个回答 2011-08-24
char *s作参数的话,字符串必须以\0结尾
char str0[9]=;//