home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_09
/
8n09129a
< prev
next >
Wrap
Text File
|
1990-07-28
|
786b
|
30 lines
/********************************************
CHEESE.C - a program to invoke the
cheese knowledge base
********************************************/
#include <stdio.h>
#include "pcxpro.h"
main()
{
int cf; /* confidence factor for result */
char value[80]; /* contains the return string value
from the consultation */
if(load_knowledge_base("cheese.kb"))
/* if success in loading */
solve_for("CHEESE",
/* the goal for this consultation */
'B', /* inference method, backward for this ex. */
value, /* string for the returned result */
&cf); /* confidence factor for result */
printf("The cheese recommended for this consultation
is %s\n", value);
}