That's a great app Stoned Coder, now I can actually read my errors.
Unfortianately I'm still stuck. I started over, and right now I have the most basic possible version of what I'm trying to do, and it's still giving me errors I don't understand. (I can read them now, I just can't figure out why I'm getting them).
Here's my code I can't get to compile:
Code:
#include <iostream>
#include <cstring>
#include <vector>
#include <map>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
using std::map;
typedef vector<string> argVec;
typedef map<string, void (*)(argVec&)> CommandMap;
void buildCommandMap(CommandMap&);
void Command_test(argVec&);
int main()
{
CommandMap cmdMap; // map of all accepted commands;
buildCommandMap(cmdMap); // put all the commands into the map
argVec x;
cmdMap["test"](x);
return 0;
}
void buildCommandMap(CommandMap &cmdMap)
{
cmdMap["test"] = Command_test;
}
void Command_test(argVec &argv)
{
cout << "Command_test called!" << endl;
}