#include "stdio.h" main () {char C [30], d [30]; int I; printf ("infut char / n"); Gets (c); for (i = 0; i ) { IF (C [I] <= 'Z' && C [I]> = 'a') D [i] = 'Z' - (C [I] - 'A'); ELSE IF (C [i] <= 'Z' && C [i]> = 'a') D [i] = 'z' - (C [I] - 'A'); ELSE D [i] = C [i]; if (c [i] == '/ 0') {C [i] = d [i]; break;}} PUTS (D); getCH ();}
When I first admixed a mistake, I can't use 'a' <= c [i] <= 'z' to represent C [i] <= 'Z' && C [i]> = ' A '.
I will never make such a low-level mistake in the future! ~
work hard! ~