recursive function help

does anyone have any idea how one could implement a recursive parsing function that will create and return multiple objects that can be accessed using a map and a key-word?

I am trying to create a madlib program, and I want to access the expressions associated with a specific keyword ...

I can sort/parse my text file, but I can only access one expression upon returning to main...

My code is very long, and I am afraid I would scare many away by posting it...

The function should take in

1
2
3
4
5

Exp* parse(map<string, Exp*>* keywords, string input){

    
}
Last edited on
Topic archived. No new replies allowed.