_______ one old lady, the bus was empty. 发布时间:2017-06-10 17:10 │ 来源:www.tikuol.com 题型:选择题 问题: _______ one old lady, the bus was empty. A.ExceptB.Except forC.ButD.Besides
题型:选择题 请补充fun函数,该函数的功能是:把字符的ASCII码为奇数的字符从字符串str中删除,结果仍然保存在字符串中,字符串str从键盘输入,其长度作为参数传入fun函数。 例如,输入“abcdef”则输出“bdf”。 注意:部分源程序已给出。 请勿改动主函数main和其他函数中的任何内容,仅在main函数的横线上填入所编写的若干表达式或语句。 试题程序: #include<stdio.h> #define N 100 void (1) int i,j; (2) ; for(i=0;i<n;i++) char str[N]; printf("please input a string:\n"); gets(str); while(str[i]!=’\0’) len++; if(s[i]%2==0) s[j++]=s[i]; (3) ; main() int i=0,len=0; i++; fun(str,len); printf("The result string:\n"); puts(str); 查看答案
题型:选择题 重载输入流运算符))必须使用的原型为( )。A.istream&operator>>(istream&,<类名>&);B.istream&operator>>(istream,<类名>);C.istreamoperator>>(istream,<类名>&);D.<类名>operator>>(istream&,<类名>&); 查看答案