o...Single to remove punctuation and Spaces can be written, set up and can't remove punctuation!
#include
Int main ()
{
int i,j;
Char STR [80].
The fgets (STR, sizeof (STR), stdin);
for(i=0; STR [I]!='\ 0' & amp; & i<80; I++)
{
If ((STR [I] & gt;='a' & amp; & STR [I] <='z') | | (STR [I] & gt;='A' & amp; & STR [I] <='Z') | | (STR [I] & gt;='0' & amp; & STR [I] <='9') | | (STR [I]==32))
{
If (STR [I]==32 & amp; & STR [I + 1)==32)
{
for(j=i; STR [j].=EOF. J++)
If (STR [j].=32)
break;
For (j; STR [j].=EOF. J++)
{
STR=STR [I + 1] [j];
i++;
}
}
}
} printf (" % s ", STR);
return 0;
}
CodePudding user response:
Punctuation is not to enter the if ((STR [I] & gt;='a' & amp; & STR [I] <='z') | | (STR [I] & gt;='A' & amp; & STR [I] <='Z') | | (STR [I] & gt;='0' & amp; & STR [I] <='9') | | (STR [I]==32)), so the punctuation is not to do any processing,CodePudding user response: