题解 | #句子逆序#

句子逆序

http://www.nowcoder.com/practice/48b3cb4e3c694d9da5526e6255bb73c3

//没啥说的。。

#include <stdio.h> #include <string.h> int main() { int i,num=0; char tmpinput[20]; char tmp[1000][20];

while(scanf("%s",tmpinput) != EOF)
{
    memcpy(tmp[num++],tmpinput,20);
    if(num>=1000)
        break;
}
for(i=num-1;i>=0;i--)
    printf("%s ",tmp[i]);
printf("\n");

}

全部评论

相关推荐

06-04 09:27
门头沟学院 Java
点赞 评论 收藏
分享
彧未sr:查看图片
投递牧原集团等公司10个岗位
点赞 评论 收藏
分享
07-21 18:43
门头沟学院 Java
是暑期都招满了吗
ANEOY:今年感觉真是后端地狱级难度了,从暑期就是这样,前端需求非常大
点赞 评论 收藏
分享
评论
点赞
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务