C++help!thanks!C++设计一个程序,在main( )中输入一个字符串,然后再输入一个字符,调用一个函数void del_char(char *p,char x),删除在字符串中的这个字符.
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 20:52:25
C++help!thanks!C++设计一个程序,在main()中输入一个字符串,然后再输入一个字符,调用一个函数voiddel_char(char*p,charx),删除在字符串中的这个字符.C++
C++help!thanks!C++设计一个程序,在main( )中输入一个字符串,然后再输入一个字符,调用一个函数void del_char(char *p,char x),删除在字符串中的这个字符.
C++help!thanks!
C++设计一个程序,在main( )中输入一个字符串,然后再输入一个字符,调用一个函数void del_char(char *p,char x),删除在字符串中的这个字符.
C++help!thanks!C++设计一个程序,在main( )中输入一个字符串,然后再输入一个字符,调用一个函数void del_char(char *p,char x),删除在字符串中的这个字符.
#include
void del_char(char *p,char x)
{
int i,j;
for (i=0;p[i]!='\0';++i)
if (p[i]==x)
{
j=i;
while(p[j]!='\0')
{
p[j]=p[j+1];
j++;
}
}
}
int main(void)
{
char a[80],x;
std::cin>>a;
std::cin>>x;
del_char(a,x);
std::out
Thanks for_____me A.help B.your help C.helping D.helps
Thanks for ( )A to help B helping C your help D helps
Thanks for________ me.A help B to help C helping D ask
( )1.Thanks for ________me.A.helping B.to help C.help
Thanks for _____me 选项A help B to help C helping
--Let me __ you.--Thanks.A to help B helping C help D helps
Thanks for _________meA helping B to help C help选哪一个?说明理由
Let me help you.----__________. A.Yes,please B.Thanks very much C.Certainly D.No,thanks
C++help!thanks!C++设计一个程序,在main( )中输入一个字符串,然后再输入一个字符,调用一个函数void del_char(char *p,char x),删除在字符串中的这个字符.
Thanks for[ ] A.you join me B.you to help C.helping us
Thanks to your help ,we have _____.A.finished B.ended C.completed
They were ( ) for his help.A.thanks B.thank C.thanked D.thankful
thanks for (----)me (----)my mathA.help,with B.helping,with C.help,for D.helping,for告诉我为什么,
-Can I help you ,sir?-____.I can manage it myself.A.No thanks.B.Thanks a lot.C.Thanks anyway不知选哪一个?急用,
【初二英语】______your help,I can pass the english exam.( )______your help,I can pass the english exam.A.thank for B.thanks with C.thanks to D.thanks aboutthank for和.thanks to 有何区别?
这道英语单选答案是不是错了?______your help,we finish the work on time A.Thanks B.Thanks of C.Thanks for D.Thanks to 书上答案说选D,可我觉得应该选C
Thanks to the satellites,people from different countries can understand each other better.thanks to可以换成下面哪一个?A.with the help of B.by the help of C.under the help
21 _____your help, everything in the room is in good order now. A Since B Because C thanks for D Thanks to