void CommandManager::Redo() { if(redo.size() <= 0) throw string("can not redo exception"); Command *c = redo.top(); redo.pop(); undo.push(c); c->Excute(); }