I am making a program that will remember what you told it. This is what I have so far:
cls rgb(rnd(100),rnd(100),rnd(100))
#include "data.dat"
Print "Type something"
talking:
do
input input$
if input$ = "exit" then exit
conversation
gosub what
loop
what:
open to read 1,"data.dat"
Print "What should I say?"
input isay$
write string 1,"if input$ = (input$) then print "(isay$)";"
close file 1
return
In the "data.dat" file I have:
function conversation
endfunction
What I want it to do is write the new strings inside the function decleration and have it programmed so that if it doesn't display a response, it goes to the "what" section and writes it.
any suggestions?
in layman's terms please....