Hello all!
I'm doing a terminal app and wanted to add the feature of completing the word when the user hits tab. Like in the terminals for folder names and such.
The tiny problem is I have no idea of how to do that. For example what method to read from the user?
Code:#include <iostream> #include <string> using namespace std; int main () { string mystr; cin >> mystr; //needs an enter and getline (cin, mystr); //also }