自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 lexicographical_compare

bool lexicographical_compare (InputIterator1 beg1, InputIterator1 end1, InputIterator2 beg2, InputIterator2 end2); bool lexicographical_compare (InputIterator1 beg1, InputIterator1 end1, InputIterator

2015-03-08 01:21:03 439

原创 mismatch

pair mismatch (InputIterator1 beg, InputIterator1 end, InputIterator2 cmpBeg); pair mismatch (InputIterator1 beg, InputIterator1 end, InputIterator2 cmpBeg, BinaryPredicate op); 功能: 第一形式返回区间[beg, en

2015-03-07 23:18:27 457

原创 equal

bool equal (InputIterator1 beg, InputIterator1 end, InputIterator2 cmpBeg); bool equal (InputIterator1 beg, InputIterator1 end, InputIterator2 cmpBeg, BinaryPredicate op); 功能: 第一形式判断区间[beg, end)内的元素

2015-03-07 22:40:50 445

原创 adjacent_find

InputIterator adjacent_find (InputIterator beg, InputIterator end); InputIterator adjacent_find (InputIterator beg, InputIterator end, BinaryPredicate op); 功能: 第一形式返回区间[beg, end)中的第一对“连续两个相等元素”之中的第一

2015-03-07 18:57:30 454

原创 find_first_of

ForwardIterator find_first_of (ForwardIterator1 beg, ForwardIterator1 end, ForwardIterator2 searchBeg, ForwardIterator2 searchEnd); ForwardIterator find_first_of (ForwardIterator1 beg, ForwardIterator

2015-03-07 18:41:54 328

原创 find_end

ForwardIterator find_end(ForwardIterator beg, ForwardIterator end, ForwardIterator searchBeg, ForwardIterator searchEnd); ForwardIterator find_end(ForwardIterator beg, ForwardIterator end, ForwardIter

2015-03-07 18:30:05 307

原创 search_n

InputIterator search_n (InputIterator beg, InputIterator end, Size count, const T& value); InputIterator search_n (InputIterator beg, InputIterator end, Size count, const T& value, BinaryPredicate op)

2015-03-07 18:16:21 306

原创 search

ForwardIterator1 search(ForwardIterator1 beg, ForwardIterator1 end, ForwardIterator2 searchBeg, ForwardIterator2 searchEnd); ForwardIterator1 search(ForwardIterator1 beg, ForwardIterator1 end, Forward

2015-03-07 17:59:47 276

原创 find和find_if

InputIterator find (InputIterator beg, InputIterator end, const T& value); InputIterator find_if (InputIterator beg, InputIterator end, UnaryPredicate op); 功能: 第一形式返回区间[beg, end)中的第一个“元素值等于value”的元素

2015-03-07 17:51:11 517

原创 最大最小值算法

InputIterator min_element (InputIterator beg, InputIterator end); InputIterator min_element (InputIterator beg, InputIterator end, CompFunc op); InputIterator max_element (InputIterator beg, InputIter

2015-03-07 16:24:19 1329

原创 元素计数算法

count算法 注意引用algorithm头文件 int main(int argc, char *argv[]) { int arrAge[] = {1,3,5,8,20,8}; vector vec(arrAge, arrAge + sizeof(arrAge)/sizeof(arrAge[0])); int nCount = count(vec.begin(),vec.end(),

2015-03-07 15:54:50 523

原创 判断文件(文件夹)的“存在和权限”

判断路径文件夹是否存在,不存在创建 C/C++判断一个文件是否存在 1. bool isExistFile(const char *pszFileName){     FILE *fp = fopen(pszFileName, "rb");     if(fp == NULL)         return false;     fclose(fp);     return t

2015-03-06 23:33:01 1219

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除