2
어떻게 그 안에 프로그램을 작성하고, ChatScript 프로그램을 호출하고, 입력 파일을 전달하고 결과를 출력 텍스트 파일로 가져올 수 있습니까?내 프로그램에서 ChatScript 라이브러리 기능을 사용하려면 어떻게해야합니까?
#include <fstream>
#include <iostream>
#include <string>
#include <chatScript.h> //for example!
using namespace std;
int main()
{
ofstream output;
string str1, str2;
getline(cin, str1);
//This is the ChatScript function that i am looking for!
str2= ChatScript_input(str1);
output.open("output.txt");
output<< "str2";
output.close();
return 0;
}