一个C++翻译成delphi的问题(200分求教)
本人欲将libsvm用Bcb做成dll供delphi调用,其部分声明如下:
struct svm_node
{
int index;
double value;
};
struct svm_parameter
{
int svm_type;
int kernel_type;
...
};
struct svm_model
{
svm_parameter param; // parameter
int nr_class;
int l; // total #SV
svm_node **SV; // SVs (SV[l])
double **sv_coef; // coefficients for SVs in decision functions (sv_coef[n-1][l])
//上两句每句有两个*,该怎么翻译成Pascal才能在下面的函数中正确调用?SV好像是指针数组在svm_predict中初始化。
...
};
__declspec(dllexport) double _stdcall svm_predict(const struct svm_model *model, const struct svm_node *x);
不知哪位大虾,能帮忙翻译一下。