// 译密码。将字母变成其后的第4个字母,非字母不变 #include <stdio.h> int main() { char c; c = getchar(); while( c != '\n' ) { if( ( c >= 'a' && c <= 'z' ) || ( c >= 'A' && c <= 'Z' ) ) { if( ( c >= 'w' && c <= 'z' ) || ( c >= 'W' && c <= 'Z' ) ) { c = c - 22; } else c = c + 4; } printf("%c",c); c = getchar(); } printf("\n"); return 0; } <img src="http://img.blog.csdn.net/20150424153229200?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvemhhb3lhcWlhbjU1Mg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
时间: 2024-10-05 07:07:49