I want to create a function that does something similar to this:
C++ Code:int WhatToDo(char *Something)
{
case &Something of
{
1:
}
}
Basically, if user types word, return a value that represents word the person types in.
I think I might be leaning more towards pascal as I wrote that, but I have no idea how to do it in c++. I looked online and there was not a clear solution on how to accomplish the task. Does anyone know how to achieve something similar to that but in c++?