main.c
来自「NASA 开发使用的一个专家系统」· C语言 代码 · 共 84 行
C
84 行
/*******************************************************/ /* "C" Language Integrated Production System */ /* */ /* CLIPS Version 6.05 04/09/97 */ /* */ /* MAIN MODULE */ /*******************************************************//*************************************************************//* Purpose: *//* *//* Principal Programmer(s): *//* Gary D. Riley *//* *//* Contributing Programmer(s): *//* *//* Revision History: *//* *//*************************************************************/#include <stdio.h>#include "setup.h"#include "sysdep.h"#include "extnfunc.h"#include "commline.h"#if ANSI_COMPILERint main(int,char *[]);VOID UserFunctions(void);#elseint main();VOID UserFunctions();#endif/***************************************************************//* MAIN: Start execution of CLIPS. This function must be *//* redefined in order to embed CLIPS within another program. *//* Example of redefined main: *//* main() *//* { *//* InitializeCLIPS(); *//* . *//* . *//* . *//* ProcessData(); *//* RunCLIPS(-1); *//* EvaluateData(); *//* . *//* . *//* . *//* FinalResults(); *//* } *//***************************************************************/int main(argc,argv) int argc; char *argv[] ; { InitializeCLIPS(); RerouteStdin(argc,argv); CommandLoop(); return(-1); } /*************************************************************//* UserFunctions: The function which informs CLIPS of any *//* user defined functions. In the default case, there are *//* no user defined functions. To define functions, either *//* this function must be replaced by a function with the *//* same name within this file, or this function can be *//* deleted from this file and included in another file. *//* User defined functions may be included in this file or *//* other files. *//* Example of redefined UserFunctions: *//* UserFunctions() *//* { *//* DefineFunction("fun1",'i',fun1,"fun1"); *//* DefineFunction("other",'f',other,"other"); *//* } *//*************************************************************/VOID UserFunctions() { }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?