Loading

摘要: CMakeLists.txt配置文件如下 cmake_minimum_required(VERSION 3.20) project(slef VERSION 0.1) # 设置 Qt 安装路径(根据你的实际路径修改) #set(CMAKE_PREFIX_PATH "D:/Qt/5.15.2/msvc 阅读全文
posted @ 2025-06-07 16:28 云辰 阅读(52) 评论(0) 推荐(0)
摘要: 代码如下 TencentMeetingLogin::TencentMeetingLogin(QWidget *parent) : QDialog(parent) { ui.setupUi(this); this->setWindowFlags(Qt::FramelessWindowHint | Qt 阅读全文
posted @ 2025-05-27 17:27 云辰 阅读(14) 评论(0) 推荐(0)
摘要: 值传递(Pass by Value) 的使用场景、优缺点以及何时应该选择它。 🧠 什么是值传递? 值传递(Pass by Value)是指在函数调用时,将实参的值复制一份给形参。函数内部操作的是这个副本,对副本的任何修改都不会影响原始数据。 示例: void addOne(int x) { x++ 阅读全文
posted @ 2025-05-12 15:22 云辰 阅读(12) 评论(0) 推荐(0)
摘要: #include "widget.h" #include "ui_widget.h" #include <QFileDialog> #include <QSettings> #include <QDebug> #include <QStandardPaths> #include <QTextCode 阅读全文
posted @ 2025-05-08 22:18 云辰 阅读(3) 评论(0) 推荐(0)
摘要: 通过qsort函数来自定义排序 #include <stdio.h> #include <stdlib.h> #include <string.h> //定义结构体 struct Stu{ char stuName[20]; int age; }; int main(){ struct Stu s[ 阅读全文
posted @ 2025-04-27 15:30 云辰 阅读(1) 评论(0) 推荐(0)
摘要: #include <stdio.h> int add(int x, int y); int sub(int x, int y); int mul(int x, int y); int div(int x, int y); int main(){ int x,y,result; int (*p[5]) 阅读全文
posted @ 2025-04-24 13:53 云辰 阅读(7) 评论(0) 推荐(0)
摘要: ## 代码实现 ```javascript /** * Kunoy * 合并单元格 * @param {} grid 要合并单元格的grid对象 * @param {} cols 要合并哪几列 [1,2,4] */ var mergeCells = function (grid, cols) { v 阅读全文
posted @ 2023-06-06 08:47 云辰 阅读(87) 评论(0) 推荐(0)
摘要: 根据oracle用户和表名,查询表的ID号 SELECT object_id FROM all_objects WHERE owner = 'MYCIMLED_PRO' AND object_name = 'UPLOAD_DATA_PROBER'; 根据id去查询该表中的字段以及字段序号,FOR U 阅读全文
posted @ 2023-02-27 09:56 云辰 阅读(187) 评论(0) 推荐(0)
摘要: 一维数组方法: int* getArray(int n) { int i, j; int* a = (int*)malloc(n * sizeof(int)); //申请内存空间,大小为n个int长度。 printf("请输入一维数组:"); for ( i = 0; i < n; i++) { s 阅读全文
posted @ 2023-01-16 14:36 云辰 阅读(346) 评论(0) 推荐(0)
摘要: 1需要输出为截取后2位小数的转换方法 #include <stdio.h> int main() { float n = 23.478; int a,b; a = (int)n; b = (int)((n - a) * 100); //记录两位小数位,如果需要保留三位小数,则把100改为1000,n 阅读全文
posted @ 2023-01-04 10:49 云辰 阅读(1982) 评论(0) 推荐(0)