// Primary programmer use this way
CMyString & CMyString::operator=(const CMyString & str)
{
if(this == &str)
return *this;
delete [] m_pData;
m_pData = NULL;
/*
* Here may be failed. If
sort函数头文件是#include
#include
#include
using namespace std;
bool comp( const int a,const int b)
{
return a>b;
}
int main()
{
int a[5] = {1,2,4,3,5};
sort(a,a + 5);//升序
for(int