mirror of
https://github.com/kangjianwei/Data-Structure.git
synced 2026-02-06 16:31:59 +08:00
13 lines
278 B
C
13 lines
278 B
C
#include "Expression.h" //**▲03 栈和队列**//
|
|
|
|
int main(int argc, char** argv) {
|
|
char opnd;
|
|
char* exp = "(1+3)*2/4#";
|
|
|
|
opnd = EvaluateExpression(exp);
|
|
|
|
printf("作为示例, %s 的计算结果为:%d\n", exp, opnd - '0');
|
|
|
|
return 0;
|
|
}
|