Q03

看板NTUBIME96-HW作者 (丑角 )時間22年前 (2003/12/08 23:41), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
//EXAM Q03 #include <stdafx.h> #include <stdio.h> #include <string.h> char text[10000]; void print(int); void main() { int y=0; while(gets(text)) { y = strlen(text); print(y); } } void print(int y) { int x; for(x=y-1;x>=0;x--) printf("%c",text[x]); printf("\n"); } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.25.184
文章代碼(AID): #_r9kHcc (NTUBIME96-HW)