1. 用c語言編寫程序,將s字元串中ASCII碼值為偶數的字元刪除,剩餘的字元組成一個新串放在t數組中.
#include<stdio.h>
intmain()
{
chars[100];
chart[100];
char*ps,*pt;
gets(s);
for(ps=s,pt=t;*ps!='
1. 用c語言編寫程序,將s字元串中ASCII碼值為偶數的字元刪除,剩餘的字元組成一個新串放在t數組中.
#include<stdio.h>
intmain()
{
chars[100];
chart[100];
char*ps,*pt;
gets(s);
for(ps=s,pt=t;*ps!='