Skip to content

Instantly share code, notes, and snippets.

View kenKanata56's full-sized avatar

tanalab kenKanata56

View GitHub Profile
#include <iostream>
using namespace std;
template<class T>
T sum(T data[],int size){
T total = 0;
for(int i = 0; i < size;i++){
total += data[i];