【发布时间】:2018-07-04 01:42:00
【问题描述】:
我使用剪辑 6.3。 (CLIPSDynamic32) 共享 dll
#include "CLIPSDLL.h"
#include "cstrcpsr.h"
#include <locale.h>
#include <stdio.h>
#include "clips.h"
Environment *theEnv;
void main(int argc, char** argv)
{
int ret;
theEnv = __CreateEnvironment();
int status = __Load(theEnv, "H:\\ClipsIntegrationExample\\clips1.clp");
__Reset(theEnv);
__AssertString(theEnv, "(templ1(name1 yes))");
__Run(theEnv,-1);
__DestroyEnvironment(theEnv);
getch();
}
这是剪辑文件 clp
(deftemplate MAIN::templ1
(slot name1))
如何从 c 中修改事实?
【问题讨论】:
标签: clips