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;
}