E D R , A S I H C RSS

abced reverse

~cpp
#include <iostream>

using namespace std;

int main()
{
	char str1[6] = "abced" ;
	char str2[6];
    
	cout << str1 << endl;

	for(int i = 0; i < 5 ; i++)
	{
		str2[i] = str1[4-i];
	}
	str2[5]=str1[5];          // 널값이 맨 앞이면 출력되지 않음, 따라서 널을 제외한 것  reverse

	cout << str2 << endl;

	
	

	system("pause");
	return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 0.0058 sec