: : Hi
: :
: : I'd like to see what you were trying to do... would you mind posting your code using
sprintf?
: :
: : cheers!
: :
:
:
: I'm using C++ with CLIPS (expert system shell). One of the CLIPS functions is assert string (add a Fact) but it doesn't let me use a variable (I need to pass it a time). I could of tried to re-write the function (CLIPS is open source) but I'm not the best of programmers!
:
: Here's some of my code:
:
:
: if(newKitchenHeatSensor.mStatus)
: {
: t1 = time(0);
: int timeOn = difftime(t1,t2);
:
: char assert[200];
: sprintf(assert,"(updateHob (time-on %d))",timeOn);
:
: AssertString(assert);
: run = true;
: }
:
:
: J
:
Hi
I just started the C language really and studying thru the string-functions now that I wondered about the use of
sprintf. ;P
CLIPS, is that the programme if not the language, or a technique to create the expert systems, or is CLIPS expert system it self..?