Может кто то хочет сделать чат бот , вот один из примеров как его сделать =)
конечно диалог можно увеличить так как богата ваша фантазия =)
Code
#include <iostream>
#include<string>
#include "stdlib.h"
using namespace std;
void start()
{
cout<<"Welcom to Vi Human (bot chat program)"<<endl;
cout<<"Please print you question ! "<<endl;
}
void Hello2()
{
cout<<"Hi! what are you doing ?"<<endl;
}
void Hello1()
{
cout<<"Hi human! I VI (Virtual Intelligence)"<<endl;
}
int main()
{
start();
string x;
I:
cin>>x;
if(x=="hello")Hello1();
if(x=="hi")Hello2();
goto I;
cin.get();
cin.get();
cin.get();
}