/*
* File: twenty_four_game.h * Author: vee * * Created on 2013年9月3日, 下午7:03 */#ifndef TWENTY_FOUR_GAME_H#define TWENTY_FOUR_GAME_H/* * 实现24点游戏的求解 */#include "formulatree.h"#include "Stack.h"void Solve(int a, int b, int c, int d);void Search(const char* s);void SelectElem(const char* s,char* select,int* tag, int len, int pos, int q, const int is_repeat);int* InitTag(int len);treeNode* InitTree();void FindPos(treeNode t, stack opPos, stack numPos);int Checking(const char* numSelects, const char* opSelects, stack opPos, stack numPos);void PrintFormula(const sstack s);int Is_uniqueFormula(const sstack s, char str[]);#endif /* TWENTY_FOUR_GAME_H */