U E D R , A S I H C RSS

데블스캠프2006/화요일/pointer/문제2/성우용

~cpp
#include<iostream>
using namespace std;

void main()
{
	int i;
	char a[8]="reverse";
	char b[8];

		cout<<a;
		cout<<"\n";
	for(i=0;i<7;i++)
		b[i] = a[6-i];
		b[7] = '\0';
		cout<<b;
		cout<<"\n";	
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 0.0129 sec