2010年12月2日

去除多余括号

摘要: struct OP { int pos; char op; }; char * Remove(char * str) { char * p = str; int i = 0; stack ops; vector rems; while(*p!='\0') { OP op; if(*p=='+'||*p=='-'||*p=='*'||*p=='/'||*p=='(') ... 阅读全文

posted @ 2010-12-02 15:46 SammyLan 阅读(498) 评论(0) 推荐(0) 编辑

逆转单项链表

摘要: 阅读全文

posted @ 2010-12-02 14:15 SammyLan 阅读(202) 评论(0) 推荐(0) 编辑

导航