C++ Dev-C++ 字符串反转:无需循环实现 "Hello World" 倒序输出
#include <stdio.h>
void reverse_print(char *str);
int main() { printf("#include <stdio.h>\n"); reverse_print('Hello World'); return 0; }
void reverse_print(char *str) { if (*str) { reverse_print(str + 1); putchar(*str); } }
原文地址: https://www.cveoy.top/t/topic/oJ05 著作权归作者所有。请勿转载和采集!