解题思路:
就是字符串函数strlen的应用
注意事项:
参考代码:
#include<stdio.h>
#include<string.h>
int main()
{
char a[100];
int length;
int i;
gets(a);
length=strlen(a);
for(i=length-1;i>=0;i--)
{
printf("%c",a[i]);
}
printf("\n");
return 0;
}
0.0分
0 人评分
人见人爱A+B (C语言代码)浏览:747 |
蛇行矩阵 (C++代码)(预生成结果以节省每次生成的时间)浏览:791 |
点我有惊喜!你懂得!浏览:926 |
点我有惊喜!你懂得!浏览:2665 |
点我有惊喜!你懂得!浏览:1020 |
不知道哪里错了浏览:1090 |
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)浏览:883 |
【亲和数】 (C语言代码)浏览:586 |
循环入门练习5 (C语言代码)浏览:752 |
C二级辅导-温度转换 (C语言代码)浏览:708 |