I'm taking data from stdin, this can either be a comment or a command with a value associated, so for instance I could have:
1 2 3
/this is a comment because it begins with / so it should be ignored
input key (where key is the value and input is the command associated with the value)
I'm storing the command as a string and the key as an int and I do something with them, like this: