function checkmemory%Copyright (c) 2014,Lv Qi%All
rights reserved.%%Redistribution and use in source and binary forms, with or
without modification, a...
分类:
其他好文 时间:
2014-05-10 20:07:52
阅读次数:
413
优先队列用法在优先队列中,优先级高的元素先出队列。标准库默认使用元素类型的qi;通过,greater>qi2;其中第二个参数为容器类型。第二个参数为比较函数。故示例2中输出结果为:2
3 5 6 9第三种方法:自定义优先级。structnode{friendbooloperator(noden1,n...
分类:
其他好文 时间:
2014-04-29 10:46:46
阅读次数:
297