会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
debdeb
博客园
首页
新随笔
联系
管理
订阅
2025年11月1日
第二周算法设计作业
摘要: 1.#include using namespace std; int partition(int a[], int left, int right) { int pivot = a[left]; int i = left, j = right; while (i < j) { while (i <
阅读全文
posted @ 2025-11-01 19:51 董恩彬
阅读(4)
评论(0)
推荐(0)
2025年10月17日
第一周算法设计作业
摘要: 1.主要编码和规范: 命名是代码的 “标签”,比如变量、函数、文件名,必须让看到的人立刻知道它的用途,避免用a/b/c、temp这种模糊的名字。格式乱的代码就像 “乱糟糟的笔记”,即使逻辑对,也很难读。核心是用 “缩进” 和 “空行” 区分代码层次。注释是给 “人” 看的说明,不是给 “电脑” 看的
阅读全文
posted @ 2025-10-17 16:31 董恩彬
阅读(14)
评论(0)
推荐(0)
公告