c++用递归函数倒序输出字符串

日期:2017-09-16 21:29:43 人气:1

c++用递归函数倒序输出字符串

#include void rs( const char *s ){ if ( *s ) { rs( s+1 ); printf("%c",*s ); }}int main(){ const char *s="hello"; rs(s); printf("\n"); return 0;}
    A+
热门评论