看板 NTUBIME100HW 關於我們 聯絡資訊
#include "stdafx.h" #include <iostream> #include <string> using namespace std; void x (char input[255]); int _tmain(int argc, _TCHAR* argv[]) { char input[255]; cout<<""; gets(input); x(input); system("pause"); return 0; } void x (char input[255]) { int lenght=0; lenght=strlen(input); for(int i=0;i<lenght;i++) { cout<<input[lenght-1-i]; } } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.240.138