模板 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<complex> #define maxn 4000010 #define PI (acos(-1.0)) using namespac ...
分类:
其他好文 时间:
2020-07-09 12:31:09
阅读次数:
80
题目链接: F - Strivore 题意: 求出在一个字符串s中插入n个小写字母,有多少不同的结果。 思路: 在字符串 s 中插入 n 个小写字母,就相当于在 n+s.length 个格子里面填入小写字母,要求其存在为 s 的子序列(不一定要连续)。 先确定 s 第一个字母所在的位置,假设在位置 ...
分类:
其他好文 时间:
2020-07-09 09:15:35
阅读次数:
345
Widget.h: #ifndef WIDGET_H #define WIDGET_H #include<QWidget> #include<QMouseEvent> class Widget : public QWidget { Q_OBJECT public: Widget(QWidget *p ...
分类:
其他好文 时间:
2020-07-09 01:18:01
阅读次数:
91
MyPushButton.h: #ifndef MYPUSHBUTTON_H #define MYPUSHBUTTON_H #include<QPushButton> #include<QEvent> #include<QMouseEvent> class MyPushButton : public ...
分类:
其他好文 时间:
2020-07-09 01:07:30
阅读次数:
59
JS数组可以看作一个特殊的对象,有属性和值 数组的定义: let arr=[1,2,"abc",true],JS是弱类型语言,数组中元素可以是不同类型的,boolean类型放入值就是对应的字符串true或false let arr=[1,"a",true]; for(let i=0;i<arr.le ...
分类:
编程语言 时间:
2020-07-08 22:44:25
阅读次数:
60
前言 有时候访问某些网站时鼠标移动或者点击出现一些较为炫酷的动画或特效,一般都是个人网站会炫酷些,公司的网站一般不会这么花里胡哨,今天就分享一下鼠标点击或移动出现简单的动画案例(复杂的动画思路也是一样,只不过要加算法)。 移动或点击出现爱心 效果图 画爱心的css .heart { width: 1 ...
分类:
移动开发 时间:
2020-07-08 13:39:57
阅读次数:
80
widget.h: #ifndef WIDGET_H #define WIDGET_H #include <QWidget> class Widget : public QWidget { Q_OBJECT public slots: void showFontDialog(); public: W ...
分类:
其他好文 时间:
2020-07-08 13:36:54
阅读次数:
62
QT 服务端代码: .h #ifndef LOCALSERVER_H #define LOCALSERVER_H #include <QObject> #include <QtNetwork> class LocalServer : public QObject { Q_OBJECT public: ...
分类:
其他好文 时间:
2020-07-08 12:58:03
阅读次数:
69
mainwindow.h: #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> class MainWindow : public QMainWindow { Q_OBJECT public slots: void foo ...