代码摘抄自 c和c++程序员面试秘籍
#include "stdafx.h" #include <string> #include <stack> #include <cassert> #include <iostream> using namespace std; const char *str_reverse(const char* s1,const char *token) { stack<char> stack1; const char *ptoken=token; const char *head=s1; const char *rear=s1; assert(s1&&token); while(*head!='