#include "MathLibrary.h" extern "C" __declspec(dllexport) int sum(int x[],int n) { int t = 0; for (int i = 0; i < n; ++i) t += x[i]; return(t); }