会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
GongKiro
博客园
首页
新随笔
联系
订阅
管理
2021年6月30日
vscode和插件配置
摘要: 插件列表: code --install-extension abusaidm.html-snippetscode --install-extension akamud.vscode-javascript-snippet-packcode --install-extension christian-
阅读全文
posted @ 2021-06-30 22:05 GongKiro
阅读(265)
评论(0)
推荐(0)
2021年1月8日
vue 自定义组件以及与父组件交互
摘要: 1. 新建templateDiv的文件夹 新建文件 templateDiv.vue <template> <div class="templateDiv"> <div @click="emitToParent(1)">Hello, {{fromParent}} </div> </div> </tem
阅读全文
posted @ 2021-01-08 10:59 GongKiro
阅读(143)
评论(0)
推荐(0)
2020年12月30日
vscode 文件标签栏多行显示
摘要: .title { height: auto !important; } .tabs-and-actions-container { display: block !important; height: auto !important; } .tabs-and-actions-container .m
阅读全文
posted @ 2020-12-30 10:48 GongKiro
阅读(2747)
评论(0)
推荐(0)
2020年9月18日
LeetCode 反转链表
摘要: 1.反转整个链表 ListNode* reverseBetween(ListNode* head, int m, int n) { if (m == n || head == NULL || head->next == NULL) return head; ListNode* pre = NULL;
阅读全文
posted @ 2020-09-18 17:40 GongKiro
阅读(385)
评论(0)
推荐(0)
2020年9月9日
LeetCode 5. 最长回文子串
摘要: 5. 最长回文子串 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。 示例 1: 输入: "babad"输出: "bab"注意: "aba" 也是一个有效答案。示例 2: 输入: "cbbd"输出: "bb" 来源:力扣(LeetCode)链接:https:/
阅读全文
posted @ 2020-09-09 10:01 GongKiro
阅读(147)
评论(0)
推荐(0)
2020年9月3日
28. 实现 strStr() 214. 最短回文串
摘要: 28.实现 strStr() 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 -1。 示例 1: 输入: haystack = "hello", needle = "l
阅读全文
posted @ 2020-09-03 10:46 GongKiro
阅读(185)
评论(0)
推荐(0)
2020年8月10日
QML 两种读资源方式
摘要: 1. 通过文件路径读取 1.1设置import path main.cpp qputenv("QML2_IMPORT_PATH", "../qml1"); //或者 //engine.addImportPath("../qml1/"); 1.2 添加file:调用 Image { id: names
阅读全文
posted @ 2020-08-10 18:43 GongKiro
阅读(930)
评论(0)
推荐(0)
2020年7月27日
QML 多页面和自定义控件1
摘要: 1.增加自定义控件myButton.qml import QtQuick 2.8 import QtQuick.Controls 2.5 Rectangle { id:myButton width: 140 height: 40 color : "#E0E0E0" //设置边框的大小和颜色,倒角 b
阅读全文
posted @ 2020-07-27 22:33 GongKiro
阅读(1065)
评论(0)
推荐(0)
2020年7月24日
QML和C++交互的方法1--------实现可以被QML访问的C++类
摘要: 总所周知,逻辑是要和界面分开的 1. 创建继承QObject的类 右键工程/add new/C++/C++ class/ 选择base class为:QObject 取名:Gemini 随便吧 2. 创建信号和槽 signal:begin() 槽:doSomething() 槽必须是protecte
阅读全文
posted @ 2020-07-24 23:09 GongKiro
阅读(977)
评论(0)
推荐(0)
2020年7月3日
C++ 的erase和remove remove_if删除元素
摘要: 1. erase 很多时候,我在删除vector元素的时候使用的是遍历指针,符合条件时使用erase删除, 可是这样的使用办法会有个问题,在vec.erase(iter)后,需要使用erase的返回值,并且这个返回值是等价iter++,也就是iter的下一个元素, 否则的话,iter将会是个无效指针
阅读全文
posted @ 2020-07-03 10:23 GongKiro
阅读(1123)
评论(0)
推荐(0)
下一页
公告