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;
}
Retrieved from http://wiki.zeropage.org/wiki.php/HASH구하기/박진영,김수진
last modified 2021-02-07 05:23:20