codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <map> #include <string> #include <vector> #include <algorithm> #include <set> /* To print out the prompt you need to use a function. This could be made to do something special, but I opt to just have a static prompt. */ typedef int (*CLI_Function ) ( const std::vector <const std::string> arguments, void * data ); typedef std::map <std::string,CLI_Function> FunctionMap; using namespace std; int main( void ) { FunctionMap fm; FunctionMap::iterator it = fm.begin(); //it->second; }
Private
[
?
]
Run code
Submit