Problem of the letter 6.10.

xiaoxiao2021-03-05  34

#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! ~

转载请注明原文地址:https://www.9cbs.com/read-33300.html

New Post(0)