How can i call other functions from my main for branching storyline purposes.
I would answer in a similar fashion to firedraco...however you also said:
So depending on the cin it would call a specific function.
So what exactly are you asking? Do you want to call a specific function based on the user's input? If that's the case and the options the user can pick are limited to only a few, you could use a set of decision if-else's based on the input string, and call a function corresponding to that string if it matches your check. Otherwise for a more robust and open design, you could use std::map for that. That is of course, if I understood what you wanted to do correctly...
ENIGMAx i was asking about user input like you had guessed but momo answered me and sorry for this trash question. im seriously learning as i make this even the basics -_-. not the best way to learn but im gonna do it :)
EDIT: wow, i should really write the story first, this stuff is really elaborate.