==주소영==
~cpp
#include<iostream> 
using namespace std; 

void main() 
{
	char buf[64]={0,};
	cin >>buf;

	int length = strlen(buf);
	int i;

	int r=1;
	for(i=0; i<length ; i++){
		if(buf[i] != buf[length-i-1]){
			r=0;
			break;
		}

	}

	if(r==0)
		cout <<"F"<<endl;
	else
		cout <<"T"<<endl;
}
Retrieved from http://wiki.zeropage.org/wiki.php/데블스캠프2006/화요일/pointer/문제4/주소영
last modified 2021-02-07 05:29:07