void *memset(void *str, int c, size_t n) Syntax void *memset(void *str, int c, size_t n) Description: The C library function void *memset(void *str, int c, size_t n) copies the character c (an unsigned char) to the first n characters of the string po
使用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