aihot  2020-11-12 10:26:40  OpenCV |   查看评论   
char *s,int lim) { char c; int n=0; while(--lim>0 && (c=getchar())!='\n' && c!=EOF) { *(s++)=c; n++; } if(c=='\n') { *(s++)=c; n++; } *s='\0'; return n; } /*strindex(s,t)返回字符串t在字符串s中的位置,如果存在s中返回-1*/ int strindex(char *s,char *t) { int i=0,j=0,k=0; while(s[i]!='\0') {
 

除特别注明外,本站所有文章均为 赢咖4注册 原创,转载请注明出处来自《TCPL》 第4章 函数与程序结构

留言与评论(共有 0 条评论)
   
验证码:
[lianlun]1[/lianlun]