Let's discuss what your first C++ chatbot source code might look like...
#include <iostream>
#include <string>
using namespace std;
int main()
{
string whatever;
cout << "What do you command: ";
getline(cin, whatever, '\n');
cout << "I will do that, " << whatever << ", as you command, master." << endl;
}
Let's discuss what your first C++ chatbot ALPHA test might look like...
What do you command: physics
I will do that, physics, as you command, master.
What do you command: thermodynamics
I will do that, thermodynamics, as you command, master.
What do you command: mow the lawn
I will do that, mow the lawn, as you command, master.
Let's discuss improving your first C++ chatbot to see how it might look like...