摘要: http://en.wikipedia.org/wiki/Recursive_descent_parserhttp://stackoverflow.com/questions/2080354/string-expression-parsing-tipshttp://stackoverflow.com/questions/28256/equation-expression-parser-with-precedencehttp://sourceforge.net/projects/jep/?source=dlp 阅读全文
posted @ 2013-01-10 17:08 规格严格-功夫到家 阅读(364) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/3422673/evaluating-a-math-expression-given-in-string-formhttp://stackoverflow.com/questions/28256/equation-expression-parser-with-precedencehttp://www.brics.dk/JSA/download.html 阅读全文
posted @ 2013-01-10 16:43 规格严格-功夫到家 阅读(644) 评论(0) 推荐(0)
摘要: #include <stdlib.h>#include <stdio.h>char* getEnvWrapper(char* key) { char* value = getenv(key); if (!value) { value = "not found"; } return value;}int putEnvWrapper(char* key, char* value) { return setenv(key, value, 1);}int main(int argc, char** argv){ if(argc == 2){ char*... 阅读全文
posted @ 2013-01-10 15:22 规格严格-功夫到家 阅读(248) 评论(0) 推荐(0)