2017-10-04 20 views
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; 
} 

答えて

1

私はあなたが直接フォーラムにチャットスクリプトの開発を依頼することをお勧め、彼はこれがへのリンクを投稿するには、ここのルールに反しないhttps://www.chatbots.org/ai_zone/viewforum/44/ 希望を監視し、外部フォーラム

私が理解する限り、CSはあなたがそれと通信するはずのソケットを開きます。 これを行う方法を説明するマニュアルは次のとおりです。 https://github.com/bwilcox-1234/ChatScript/blob/master/WIKI/CLIENTS-AND-SERVERS/ChatScript-ClientServer-Manual.md

関連する問題