#include #include #include int ia(int a) { if(a>=0 && a =26 && a =51 && a =76 && a =0 && a =26 && a =51 && a =76 && a b[i]) f[i]=d[i-1]; else f[i]=b[i]; } c[i]=sa(s1[i]); e[i]=65+i; d[i]=f[i]+c[i]; notice[1][0]=b[i]; notice[1][1]=e[i]; if(i>0 && notice[1][0] 0 && notice[1][0]>notice[0][0]) printf( " (%d,%c)(%d,%c)\n",notice[0][0],notice[0][1],notice[1][0],notice[1][1]); if(i==0) printf("InterArr Arrival EventNtc ServTime ServComp Notice\n"); printf("%6d%9d (%c,%4d)%8d%8d",ia(a[i]),b[i],e[i],f[i],c[i],d[i]); notice[0][0]=d[i]; notice[0][1]=e[i]; } printf(" (%d,%c)",notice[0][0],notice[0][1]); getch(); }