• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
小小松
学习技术不只是为养家糊口,也为夜深人静的时候能够一个人静静享受这其中的乐趣。
博客园    首页    新随笔       管理     
2013年6月28日
数组 反转
摘要: void Reverse(int cry[],int begin,int end){ while(begin<end) { cry[begin]= cry[begin]^cry[end]; cry[end]=cry[begin]^cry[end]; cry[begin]=cry[begin]^cry[end]; begin++... 阅读全文
posted @ 2013-06-28 23:01 小小松 阅读(236) 评论(0) 推荐(0)
排序 归并排序&逆序对
摘要: void MergeArray(int cry[],int temp[],int begin,int middle,int end){ int i=begin; int j=middle+1; int k=i; while(i<=middle&&j<=end) { if(cry[i]<=cry[j]) { tem... 阅读全文
posted @ 2013-06-28 22:56 小小松 阅读(271) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3