데블스캠프2006/화요일/pointer/문제4/이송희 ¶
~cpp #include <iostream> using namespace std; void main() { char buf[64]={0, }; cin >> buf; int length = strlen(buf); int i; bool result; for(i=length-1; i>=length/2; i--) { if(buf[i]!=buf[length-1-i]) { result = false; break; } else result=true; } cout << result << endl; }