#include <stdio.h>
int main(int argc, const char * argv[]) { char ch[3]={'x','y','z'}; char a,b,c; int i=0;
do{ c=ch[i++]; }while (c=='x'||c=='z'); i=0; do{ a=ch[i++]; }while (a=='x'||a==c); i=0; do{ b=ch[i++]; }while (b==a||b==c); printf("a对%c, b对%c, c对%c",a,b,c);
return 0; }
|