摘要: qsor()函数使用的一个简单说明。qsort()函数原型:void asort(void*, size_t nelem, size_t width, int (* fcmp)(const void *, const void *));nelem:数组元素个数; width:元素类型长度;int (* fcmp)()是一个函数指针,只要这个参数完成如下功能即可:比较第一个数组中的某两个元素,如果相等则返回0,如果参数1>2,则返回值为正值,否则返回负值。 阅读全文
posted @ 2013-08-02 09:34 bees 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 一个关于C++各类运算符以及优先级的表格。 阅读全文
posted @ 2013-08-02 09:22 bees 阅读(134) 评论(0) 推荐(0) 编辑