- 论坛徽章:
- 0
|
回复 2楼 cjaizss 的帖子
没有,我贴开头的一段程序
#include <time.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <string.h>
#include "ranlib.h"
#include "cluster.h"
#ifdef WINDOWS
# include <windows.h>
#endif
/* ************************************************************************ */
#ifdef WINDOWS
/* Then we make a Windows DLL */
int WINAPI
clusterdll_init (HANDLE h, DWORD reason, void* foo)
{
return 1;
}
#endif
/* ************************************************************************ */
double CALL mean(int n, double x[])
{ double result = 0.;
int i;
for (i = 0; i < n; i++) result += x[i];
result /= n;
return result;
}
/* ************************************************************************ */ |
|