07 2011 档案
C++COLORREF与字符串互转
摘要://COLORREF转换为字符串BOOL CDataManager::GetRGBText(std::string &strRGBText , COLORREF color){//COLORREF col = RGB( 255 , 12 , 4);BYTE Red = GetRValue(color); ///得到红颜色BYTE Green = GetGValue(color); ///得到绿颜色BYTE Blue = GetBValue(color); ///得到兰颜色char chR[4];itoa(Red ,chR , 10 );char chG[4];itoa(Green , 阅读全文
posted @ 2011-07-12 16:49 。o 0 尘埃_o 。 阅读(1148) 评论(0) 推荐(1)
C++对vector里面的元素排序及取任意重叠区间
摘要:#include "stdafx.h"#include <iostream>#include <vector>#include <algorithm>typedef std::pair<long, long> SE_Date;typedef std::vector<SE_Date> VEC_SE_Data;bool data_order(const std::pair <long, long> a, const std::pair <long, long> b) { return a.fir 阅读全文
posted @ 2011-07-12 11:05 。o 0 尘埃_o 。 阅读(944) 评论(0) 推荐(1)