C++AI聊天机器人

date:

2022/12/23        发布v1.0.0

v1.0.0:

AI_study.h

#ifndef TEST003_AI_STUDY_H
#define TEST003_AI_STUDY_H
#include 
#include 
#include 
using namespace std;

struct Ques;
void init();
string find(string s);
void study();
#endif //TEST003_AI_STUDY_H

AI_study.cpp

#include 
#include 
#include 
#include 
#include 
#include "AI_study.h"
using namespace std;
string Dict = "/Users/srcb-sanke/code/eclipseworkspace/untitled/资源库";
ifstream fin(Dict);
ofstream fout(Dict,ios::app);

struct Ques
{
    vector ques;
    vector ans;
};

vector que;

void init()
{
    bool ques = false;
    bool ans = false;
    string s;
    Ques a;
    while(getline(fin,s))
    {
        if(s == "[")
  

你可能感兴趣的:(C++/python项目,c++,人工智能)