利用递归反向输出字符串

 string end with '#'

void reversePrint()
{
    char c;
    scanf("%c", &c);
    if(c != '#') reversePrint();
    if(c != '#') printf("%c", c);
}
原文地址:https://www.cnblogs.com/alexeyqian/p/3406605.html