例如字符串a为“a2cd5e”,则数组b中内容为“a2cd5e”。(求大佬)
#include<stdio.h>
void main( )
{ int k=0;
char a[80], b[80], *p=a;
gets ( p);
while (*p)
{ b[k]=*p; _________________;①
if ( *p>= ‘0’ && *p<= ‘9’ )
{ b[k]= ‘ ’ ;
________________;②
}
__________________;③
}
b[k]= ‘\0’;
puts (b);
}例如字符串a为“a2cd5e”,则数组b中内容为“a2cd5e”。请填空。
#include<stdio.h>
void main( )
{ int k=0;
char a[80], b[80], *p=a;
gets ( p);
while (*p)
{ b[k]=*p; _________________;①
if ( *p>= ‘0’ && *p<= ‘9’ )
{ b[k]= ‘ ’ ;
________________;②
}
__________________;③
}
b[k]= ‘\0’;
puts (b);
}