U E D R , A S I H C RSS

데블스캠프2006/화요일/pointer/문제2/윤성준

윤성준

~cpp

#include <iostream>

using namespace std;

void main()
{

	char a[6] = "abced";
	char b[6];
	int n;

	cout << a << endl;
	
	b[5] = a[5];
	
	for (n = 0 ; n < 5; n++) {
		
		b[4 - n] = a[n];
	
	}
	

	cout << b << endl;
	
}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:06
Processing time 0.0106 sec