• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ezhong
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

随笔分类 -  脑残集

 
3.基数排序
摘要:#include #include #include void ArrPrint(std::vector const & arr){ for (auto i : arr){ printf("%d ", i); } printf("\n");}//iBase 桶数void radixsort(std... 阅读全文
posted @ 2014-09-23 12:29 ezhong 阅读(266) 评论(0) 推荐(0)
2.堆排序
摘要:#include "string"#include "vector"#include "time.h"typedef std::basic_string tstring;typedef std::vector IntVec;// iIndexAdjust 从0计数.... left = 2i+1;r... 阅读全文
posted @ 2014-09-19 17:16 ezhong 阅读(206) 评论(0) 推荐(0)
1.把一个字符串内的正整数相加
摘要:1 #include "string" 2 typedef std::basic_string tstring; 3 int _tmain(int argc, _TCHAR* argv[]) 4 { 5 6 tstring str= _T("没2有60最脑40残只有100更脑残!... 阅读全文
posted @ 2014-09-15 17:13 ezhong 阅读(398) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3