正在加载图片...
52.1.3异常处理 /*0*/msg List[i]. no=i; strcpy(msg List[1]. msg, "Unkonwn error"); 1++, /*1*/msg List[i]. no=i; strcpy(msg List[i]. msg. "The parameters Out of range);1++, /*2*/msgList[i]. no-=1; strcpy(msgList[i]. msg, The parameters illegal"); i++ /*3*/msgList[i]. no=1; strcpy(msgList[i]. msg, The memory space low): i++ /*4*/msgList[i]. no=i; strcpy(msg List [i]. msg,"Not found ) i++ en 全局的出错代码表 errMessageList extern TErrMessagelist errMessagelist char *Getmessage(into) if(no<0 no >=CNST MaxNumErrMessage) return Null return msgList no. msg,11 §2.1.3 异常处理 /* 0*/ msgList[i].no=i; strcpy(msgList[i].msg, "Unkonwn error"); i++; /* 1*/ msgList[i].no=i; strcpy(msgList[i].msg, "The parameters Out of range"); i++; /* 2*/ msgList[i].no=i; strcpy(msgList[i].msg, "The parametersillegal"); i++; /* 3*/ msgList[i].no=i; strcpy(msgList[i].msg, "The memory space low"); i++; /* 4*/ msgList[i].no=i; strcpy(msgList[i].msg, "Not found"); i++; len = i; }; char *GetMessage(int no) { if (no<0 || no >= CNST_MaxNumErrMessage) return NULL; return msgList [no].msg; }; }; 全局的出错代码表errMessageList extern TErrMessageList errMessageList;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有