摘要:
Warning: 只支持0-9的加减乘除,测试一下博客园功能Env: Win7+VS2010$cl main.cpp$main.exe (3+(4*8))+((6+7)/5)348*+67+5/+Result : 37#include <cstdio>#include <cstdlib>#include <cstring>#include <stack>char buff[1000] = {0};int count=0;//指向buff中下一个可用的位置char current;//currentExp所指向的字符char* currentExp 阅读全文