16,467
社区成员
发帖
与我相关
我的任务
分享
bool myfunction(double i, double j)
{
if (i < j)
{
return true;
}
else
{
return false;
}
}
int main
vector<double>xxx;
for (int cc = 0; cc < dd; ++cc)
{
xxx.push_back(0); //容器添加一行
CString mm = ListCtrl.GetItemText(cc, 4);
double zz = _tstof(mm);
xxx[cc] = zz; //容器赋值
}
std::sort(xxx.begin(), xxx.end(), myfunction);
}