ok so first of all my following code its suppose to read input from user and seperate the strings into commands and arguments.For example if i input changeDir hello , the tokenizer(which i already implemented) will split it and put changeDir into tokens[0] and hello into tokens[1]. Now what im trying to do is pass the command and arguments to another function lets say my_cd(). what kind of parameters will this function have?
//...
vector<string> tokens;
string str;
cout <<"please enter a command" << endl;
getline(cin,str);
Tokenize(str, tokens);
if(tokens[0] == "changeDir")
{
my_cd();
}