使用STL库sort函数对vector进行排序,vector的内容为对象的指针,而不是对象. 代码如下 #include <stdio.h> #include <vector> #include <algorithm> using namespace std; class Elm { public: int m_iSortProof; private: int __m_iValue; static int __m_iCnt; public: Elm(); int get…
查询某库所有表的rows &查看当前sql的注册信息 1 2 3 4 5 6 7 select sobj.name,spar.rows FROM sys.objects sobj INNER JOIN sys.partitions spar ON sobj.object_id = spar.object_id WHERE sobj.type IN ('U','V') AND spar.index_id IN (0,1) ORDER BY spar.rows desc 相关sys表的说明参考如…