请编写函数fun(),该函数的功能是:将s所指字符串中 ASCII值为偶数的字符删除,串中剩余字符形成一个新串放在t所指的数组中。
例如,若s所指字符串中的内容为ABCDEFGl2345,其中字符B的ASCⅡ码值为偶数、…、字符2的ASCⅡ码值为偶数、…,都应当删除,其他依次类推。最后t所指的数组中的内容应是ACEGl35。
注定:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。
试题程序;
#include <stdio. h>
#include<string.h>
#include<conio. h>
void fun(char *s, char t[])
main ( )
char s[100],t [100];
clrscr ();
printf (,\nPlease enter string S: ");
scanf ("%s", s);
fun(s,t);
printf ("\nThe result is :%s\n",t);