I have an idea for a semi-AI code that has a separate ai.h and ai.cpp file that contain the massive AI program, but is it possible to update the code while, or before it runs ai again? This is the main.cpp so far
int main(){
start:
string value1 = "";
cout << "Hello, I am AI, what do you need?\n";
cin >> value1;
cin.get();
ai(value1);
goto :start
}
For example the user could enter "update 'define' 'what is'", and then typing what is would do the same as typing define, but how would I make AI update itself?