當前位置:編程學習大全網 - 電腦編程 - c語言編程作業 函數strdel,求指導!!

c語言編程作業 函數strdel,求指導!!

請問接口是什麽

函數的原型是什麽

#include <stdio.h>

void strdel(char*s,char del)

{

int i,j;

for(i=0,j=0;s[i];i++)

{

if(s[i]!=del)

s[j++] = s[i];

}

s[j] = 0;

}

int main()

{

char s[1000];

char del;

while(gets(s)!=NULL)

{

scanf("%c",&del);

strdel(s,del);

printf("%s\n",s);

}

}

  • 上一篇:建立java與python的接口,讓java能調用python腳本。請問可以用什麽方式?
  • 下一篇:高中生學習C++語言合適嗎?
  • copyright 2024編程學習大全網