U E D R , A S I H C RSS

HASH구하기/조동영,이재환,노수민

이재환바보

~cpp 
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
	ifstream fin ("input.txt");
	ofstream fout ("output.txt");
	char ch;
	int na[5]={0};
	int count=0;

	while(fin.get(ch))
	{
		na[count%5] += ch;
		count++;
	}
	cout << na[0] << " " << na[1] << " " << na[2] << " " << na[3] << " " << na[4] << endl;
	fout << na[0] << " " << na[1] << " " << na[2] << " " << na[3] << " " << na[4] << endl;
	return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 0.0654 sec