C 语言实例 - 字符串翻转
C 语言教程
· 2019-02-20 23:11:27
使用递归来翻转字符串。
实例 - 字符串翻转
#include <stdio.h>
void reverseSentence();
int main()
{
printf("输入一个字符串: ");
reverseSentence();
return 0;
}
void reverseSentence()
{
char c;
scanf("%c", &c);
if( c != '\n')
{
reverseSentence();
printf("%c",c);
}
}
输出结果为:
输入一个字符串: codercto boonur
点击查看所有 C 语言教程 文章: https://codercto.com/courses/l/17.html
Web Design in a Nutshell
Jennifer Niederst / O'Reilly Media, Inc. / 2006-02-21 / USD 34.99
Are you still designing web sites like it's 1999? If so, you're in for a surprise. Since the last edition of this book appeared five years ago, there has been a major climate change with regard to web......一起来看看 《Web Design in a Nutshell》 这本书的介绍吧!