自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 收藏
  • 关注

原创 MySQL 安装时没有developer default 选项

在安装mysql没有developer default选项很有可能是之前装过mysql但是卸载没卸干净,导致path重合,不能二次安装MySQL。按照下面步骤即可重新安装。

2023-11-14 23:58:41 13293 3

原创 第六届字节跳动青训营 - 暑假专场 前端、后端基础班笔试

1.【单选】页面中有10个逐层嵌套的div元素,最底层的div元素有个名为 'div' 的class,对最底层div应用以下两条css规则,问最底层div的颜色?如果规则顺序前后对调呢,底层div颜色?。B. red,redD. red,red2.【单选】下面哪个事件处理程序会阻止事件冒泡?3. 【单选】以下哪个方法可以用于将一个字符串转换为整数4.【单选】["1", "2", "3"].map(parseInt)D. other5.【单选】下列定义的 css 中,哪个权重是最低的?

2023-07-23 01:00:00 282

原创 useState in React

更多例子请看react官方文档。

2023-07-16 15:59:33 98

原创 session in node.js

注意: 现在的express-session module do not need cookie-parser anymore. 在这个文章中的cookie-parser可省略。

2023-07-05 07:48:47 52

原创 flash in node.js / express

app.use()是不管传递什么页面都要经历的一个东西,所以在这里可以使得message平等的传递给每一个页面。所以,我们可以在boilerplate里加上对于message的传递。Flash messages are stored in the session. 所以设置flash的第一步是设置session middleware.Then, use。以及session存储在node.js里及其简单,几乎自动,具体案例:udemy sec48 express session.所以此处无需考虑具体储存。

2023-07-05 07:01:37 66

原创 Mongoose 相关联 数据 创立与其他相关操作

基于 Udemy The Web Development Bootcamp 2023 Section 44 Data Relationship With Mongo , Section 45 Mongo Relationships with Express, Section 46: YelpCamp: Adding the Reviews Model 的coding小总结。

2023-07-04 23:16:13 173

原创 Javscript require 小解

这里代表的是require 同一文件夹下的review.js文件 .记录Javascript 中遇到过的require。

2023-07-04 23:08:57 44

原创 一些宝藏网站

BootCDN - Bootstrap 中文网开源项目免费 CDN 加速服务JSON在线解析及格式化验证 - JSON.cn

2023-06-16 10:45:18 55

原创 为什么不能第一时间作对leetcode的原因

i ++ 和 mid = i++;

2023-05-24 22:04:06 40

原创 Leetcode 167. Two Sum II - Input Array Is Sorted

因为是sorted 通过引入双指针 space complexity O(1) 不额外获得空间。

2023-05-24 21:48:47 37

原创 HTML 大纲

shift+ctrl+p 查找 format document 就可以啦 => shift+alt+f in my computer。在我的电脑上是 ctrl + / 快捷comment一整行。 a+tab 更好用。+ tab 自动生成。

2023-05-24 13:31:30 45

原创 Map + Set + unordered_map + unordered_set

前言: 把哈希表放在前端是因为由于本身搜索Time complexity = O(1)哈希表是leetcode几乎是最常用的一种map.例题: 242/ 1002/394/202/1* /454/383/15/18。

2023-05-21 23:18:46 55

原创 Leetcode ToolBox

看了Harvard cs50 有关interview 的视频有感,决定分类写下自己对于leetcode刷题技巧总结,提高自己从思路到coding的速度。

2023-05-21 22:31:59 40

原创 2024 暑期美国实习准备日记

资料:看完写blog具体简历提交时间针对简历的项目。

2023-05-20 22:50:12 73

原创 Qt 一些小坑小错误小总结

a)直接在QLabel右侧属性text下面的WordWrap打钩。

2023-04-14 23:47:45 48

原创 Qt 通过http获取数据

1. 创建"网络访问对象"类。

2023-04-14 23:29:01 418

原创 Json 小结

Qt 中相关的类。

2023-04-14 00:34:32 40

原创 QT calculator step by step

edit the main display area. change the stylesheet as above and change the font to aria bond 36 sth. like this. change alignment to align to the right. =》见上图。以及要把计算的数字展现到lineEdit是需要转化为string再放入ui->lineEdit->setText(string);注意:LineEdit里的数字 其实是string!

2023-04-11 23:59:58 61

原创 Create your own NotePad

在action中右键点击Edit icon-> choose resources (没有出现save all一下) icon 后面的选项要选择normal on。完成后双击.qrc文件,add prefix 将prefix改为/imgs. add 改为 add file后添加文件。- 加一行Qstring (此处Qstring无需include)mainwindow.h。在文件名邮件add, add resource file,点击okey。-New file 槽的更改。-将文本放大为整个软件。

2023-04-08 23:20:46 41

原创 创建Qt project 出现.txt 而不是.pro如何更改

在创建Qt project中 出现.txt 而不是.pro该如何更改?

2023-04-07 16:53:22 378 1

原创 Qt learning Path

3/23fixed size 会让push bottom跟着整个窗口大小随之一起变化 //右键 布局Buddy mode: 拖拽 编辑Tab:tab highlight 的部分。

2023-03-23 20:06:09 49

原创 \t tab键不能让竖行对齐?一招解决

在c++入门coding 中,我们常常需要用到‘\t’来将竖行对齐。但是'\t'往往很难如我们所愿的整齐对齐,经常随意跑偏。一招解决这个问题,coding如下。用这个方法就很好解决啦。相信这个解决方法聪明的你直接看代码就能明白,不再赘述。

2023-03-20 01:10:09 410

原创 Static_cast & Dynamic_cast

static_cast, dynamic_cast, c++

2023-02-28 22:46:44 68

原创 Diary:

2023/2/25。

2023-02-25 00:18:29 109

原创 Small Tricks Learned from Professor Tri Pham‘s CS2B Class at Foothill College

Small cs tricks

2023-02-12 22:36:48 59

原创 The most useful ignore() coding

cin.ignore() most useful function. c++

2023-02-12 22:23:42 58

原创 How to stay Beautiful as a Programmer

Lifestyle as a programmer

2023-01-16 15:49:34 52

原创 Sorting 总结

/ Merge: 对数字进行合并void Merge(int *arr,int begin,int mid,int end){ int i=begin,j=mid+1,k=0;while(i

2022-10-19 14:30:38 109 2

FootHill College CS2B Assignments

Professor: Tri Pham. These are all the assignments I did during his class CS2B. If you are a student of this class and find this resource, I highly recommend that you did it first then take a look at these. Because his assignments are helpful for you to learn C++ and be good at it.

2023-04-18

20WinterQ5.cpp

20WinterQ5.cpp

2022-09-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除