U E D R , A S I H C RSS

HASH구하기/박진영,김수진

Describe HASH구하기/박진영,김수진 here.

~cpp 
#include <iostream>
#include <fstream> 
using namespace std;
int main()
{ 
	ifstream fin("source.txt"); 
   
	
	char ch;
	int i=0;

	
	int sum[5]= {0};
	
	while (fin>>ch)
	{
	
		sum[i++] += int(ch);
		if (i>4)
		 i = 0;
	}
	for(i=0; i<5; i++)
      cout<<sum[i]<<"\n"

	return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:20
Processing time 0.0132 sec