分类：电脑/网络-互联网-上网帮助
问题：我总是实现不了已知串中除字母A或者a的复制，麻烦大家帮帮忙，那部? 
#include <std.h>#include <stdlib.h>#define OK  1#define ERROR  2#define OVERFLOW  -2#define MAX 100typedef struct{    char *ch;  char a;    int length;}HString;//清空串void ClearString(HString *S){    if(S->ch)    {        free(S->ch);        #include <std.h>#include <stdlib.h>#define OK  1#define ERROR  2#define OVERFLOW  -2#define MAX 100typedef struct{    char *ch;  char a;    int length;}HString;//清空串void ClearString(HString *S){    if(S->ch)    {        free(S->ch);        S->ch=NULL;    }    S->length=0;}//赋值int StrAssign(HString *S,char *chars){    char *c=chars;    int i;    if(S->ch)   free(S->ch);    for(i=0;*c;i++,c++);//求chars这个串的长度    if(!i)    {        S->ch=NULL;        S->length=0;    }else{        S->ch=(char *)malloc(sizeof(char)*i);        if(!S->ch)  return ERROR;        S->length=i;        for(;i>0;i--)            S->ch[i-1]=chars[i-1];    }    return OK;}//计算长度int StrLength(HString S){    return S.length;}//字符串的比较int StrCompare(HString S,HString T){    int i;    for(i=0;i<S.length&&i<T.length;i++)        if( [i]!= [i])            return  [i]- [i];    return S.length-T.length;}//字符串连接int Concat(HString *T,HString S1,HString S2){    int i;    if(T->ch)  free(T->ch);    T->ch=(char *)malloc(sizeof(char)*(S1.length+S2.length));    if(!T->ch)  return ERROR;    for(i=0;i<S1.length;i++)        T->ch[i]= [i];    for(i=0;i<S2.length;i++)        T->ch[S1.length+i]= [i];    T->length=S1.length+S2.length;    return OK;}//字符串复制,实现不了,麻烦大家帮帮忙吧void StrCopy(HString &to,HString &from){     if( )    {             =NULL;        to.length=0;    }   //if int i,j;    char *temp=(char *)malloc(from.length * sizeof(char));    for(i=0; i<from.length; i++)   {if (!( [i]-97)&&( [i]-65))    //除字符串中字母A或者a外的字母的复制 {temp[j] =  [i];        *(temp+j) =  [i];j++;}   } //for   =temp;    to.length = j;    }//显示串void StrPrint(HString T){    int i;    for(i=0;i<T.length;i++)        putchar( [i]);        //printf("%s", );    printf("\n");}int main(){void strcopy(HString &to,HString &from);     HString H1;HString H3;    char chars1[MAX];    printf("请输入一个字符串来初始化串：\n");    scanf("%s",chars1);    StrAssign(&H1,chars1);    StrPrint(H1);    int length=StrLength(H1);    printf("这个字符串长度为：%d\n",length);    printf("\n");  printf("删除字母a或者A后的字符串：\n"); strcopy(H3,H1);  StrPrint(H3);return 0;    }
回答：就是这样??......