摘要: c++1)GetTickCount()#inlcude int main(){ DWORD start_time = GetTickCount(); { //code } DWORD end_time = GetTickCount(); cout int main(){ clock_t start_time = clock(); { //code } clock_t end_time = clock(); cout (end_time-start_time)/CLOCK_PER_SEC*1000 << "ms" << endl; return 0;} 阅读全文
posted @ 2014-04-08 21:18 bupt_lyn 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 从左至右扫描中缀表达式遇到操作数,直接添加到后缀表达式中栈为空时,遇到操作符,直接入栈遇到(,直接入栈遇到 ),执行出栈到 )遇到其他运算符,弹出栈中优先级大于等于该运算符的运算符,然后该运算符进栈最终栈中的元素全部输出 阅读全文
posted @ 2014-04-08 14:35 bupt_lyn 阅读(134) 评论(0) 推荐(0) 编辑