相关代码 |
|
#include #include #include const int maxlength = 20; void codeword(char code[maxlength],int length); int main() { cout char code[maxlength]; cout gets(code); codeword(code,strlen(code)); cout gets(code); // 延时作用,以在控制台下查看程序结果 return 0; } void codeword(char code[],int length) { int i,j,k; for(i = 0;i for(j = 0;j if(i != j){ for(k = 0;k if(i != k && j!= k ){ cout } } }