算法笔记原题
#include <iostream> #include <stdio.h> using namespace std; int main() { int num=0; char ans[90][90]; while(scanf("%s",ans[num])!=EOF) { num++; } for(int i= num-1;i>=0;i--) { printf("%s",ans[i]); if(i>0) printf(" "); } return 0; }
标签:int,ans,pat1009,num,printf,include From: https://www.cnblogs.com/lyhhuster/p/17142258.html