I'm looking to read input from a file and convert this to a std::tuple
type. For example, I might have input like this:
((3,12,8),(2,4,6),(14,5,2))
in a file. Is there any built-in way to parse this to a std::tuple?
The ultimate goal is to create a minimax tree from this input, so the tree would look like . My Tree type looks something like this:
class Tree{
int data;
bool is_max_ply;
vector<Tree*> children
};
Any better options on creating my tree other than using std::tuple
?
Thanks!
Aucun commentaire:
Enregistrer un commentaire