上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 303 下一页
摘要: 学校打算为全体学生拍一张年度纪念照。根据要求,学生需要按照 非递减 的高度顺序排成一行。 排序后的高度情况用整数数组 expected 表示,其中 expected[i] 是预计排在这一行中第 i 位的学生的高度(下标从 0 开始)。 给你一个整数数组 heights ,表示 当前学生站位 的高度情 阅读全文
posted @ 2022-05-18 11:43 我不是萧海哇~~~ 阅读(61) 评论(0) 推荐(0)
摘要: 排排坐,分糖果。 我们买了一些糖果 candies,打算把它们分给排好队的 n = num_people 个小朋友。 给第一个小朋友 1 颗糖果,第二个小朋友 2 颗,依此类推,直到给最后一个小朋友 n 颗糖果。 然后,我们再回到队伍的起点,给第一个小朋友 n + 1 颗糖果,第二个小朋友 n + 阅读全文
posted @ 2022-05-18 10:39 我不是萧海哇~~~ 阅读(27) 评论(0) 推荐(0)
摘要: 原文:https://blog.csdn.net/myruo/article/details/84326769 基础操作: 1、插入列 CString strLoad; RECT rectList; GetDlgItem( IDC_LIST )->GetClientRect( &rectList ) 阅读全文
posted @ 2022-05-18 09:37 我不是萧海哇~~~ 阅读(350) 评论(0) 推荐(0)
摘要: 原文:https://blog.csdn.net/myruo/article/details/83856211 场景: 需要不同的颜色来区分其他数据 操作步骤: 添加 NM_CUSTOMDRAW 消息响应事件,或者手动添加 实现代码如下: NMLVCUSTOMDRAW* pLVCD = reinte 阅读全文
posted @ 2022-05-18 09:11 我不是萧海哇~~~ 阅读(363) 评论(0) 推荐(0)
摘要: 给你一个类: public class Foo { public void first() { print("first"); } public void second() { print("second"); } public void third() { print("third"); } } 阅读全文
posted @ 2022-05-18 09:01 我不是萧海哇~~~ 阅读(51) 评论(0) 推荐(0)
摘要: 1、代码 #ifdef _WIN64 qDebug()<<64; #else qDebug()<<32; #endif 2、注意 _WIN64只有在64位程序上才被定义; _WIN32在64和32位程序上都会被定义 阅读全文
posted @ 2022-05-17 21:38 我不是萧海哇~~~ 阅读(290) 评论(0) 推荐(0)
摘要: 不好理解 class Solution { public: int countSubstrings(string s) { int n = s.size(), sum = 0; for(int i = 0; i < n*2-1; i++) { int l = i / 2, r = i/2 + i%2 阅读全文
posted @ 2022-05-17 16:14 我不是萧海哇~~~ 阅读(31) 评论(0) 推荐(0)
摘要: 原文:https://beondxin.blog.csdn.net/article/details/98480663 临时有需求写些小的任务,比如文件流操作,图片加水印等完成快速部署,或者比较大的项目,编译速度过慢,这时就需要设置预编译。建完新工程实现快速部署和编译。 qt使用预编译只需要在.pro 阅读全文
posted @ 2022-05-17 15:56 我不是萧海哇~~~ 阅读(220) 评论(0) 推荐(0)
摘要: 原文:https://beondxin.blog.csdn.net/article/details/100173606 看到一个不错的文字和图片对应起来的方式,记录下 给每个item传入QtUserRole item->setData(QtUserRole, i.key()); 根据 item->d 阅读全文
posted @ 2022-05-17 15:48 我不是萧海哇~~~ 阅读(186) 评论(0) 推荐(0)
摘要: 原文:https://editor.csdn.net/md?articleId=124823144 图像处理一般都是在opencv/vtk/itk/halcon里做的,qt用来显示 偶尔有很简单图像操作小需求,调用第三方库很麻烦,我这里记录下自己每次有需要临时写的 单纯qt对像素的操作简单的图像处理 阅读全文
posted @ 2022-05-17 15:46 我不是萧海哇~~~ 阅读(303) 评论(0) 推荐(0)
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 303 下一页