回复 6楼 w257326716
程序代码:
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void reverserm(char *s) {
if ('\0' != *s) {
reverserm(s + 1);
if ('0' <= *s && *s <= '9') putchar(*s);
}
}
int main(int argc, char ** argv) {
char str[100];
scanf_s("%s", str, 100);
reverserm(str);
}