|
SOLUTIONS
|
MATHEMATICA MATHLINK C 函数
MLINK
![]()
是一个表示 MathLink 链接对象的 MathLink 类型.
更多信息更多信息
类似于 Mathematica 中的 LinkObject.- MLINK 被定义在文件 mathlink.h 中,它应该被包含在任何 MathLink 兼容程序的源代码中.
范例范例打开所有单元关闭所有单元
基本范例 (1)基本范例 (1)
#include "mathlink.h"
int main(int argc, char **argv)
{
MLENV ep;
MLINK lp;
long error;
ep = MLInitialize((MLParametersPointer)0);
if(ep == (MLENV)0)
{ /* unable to initialize environment */ }
lp = MLOpenArgcArgv(ep, argv, argv + argc, &error);
if(lp == (MLINK)0 || error != MLEOK)
{ /* unable to create link */ }
/* ... */
MLClose(lp);
MLDeinitialize(ep);
return 0;
}
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
