摘要:
1、实现图片的自适应,我们需要用到,一个自带的事件void resizeEvent(QResizeEvent *);该函数会在你运行程序的时候执行一次,在变换一次窗口的时候也会运行一次。 具体代码如下: #include "mainwindow.h" #include "ui_mainwindow. 阅读全文
摘要:
priority_queue q;//默认优先级队列的定义。 在默认的优先队列中,优先级高的先出队。在默认的int型中先出队的为较大的数。 #include <iostream> #include <vector> #include <queue> using namespace std; stru 阅读全文
摘要:
1.Perl下载地址 https://platform.activestate.com/tangxing806/ActivePerl-5.28/distributions 2.下载完成: 3.双击安装 4.选择典型安装 5.添加到PATH,开始安装 6.等待安装完成 7.安装完成 8.测试效果 阅读全文
摘要:
双链表 在单链表的每个结点中再设置一个指向上一跳的前驱结点的指针域 //结构体定义 typedef struct _node { dataType data; //链表中的数据域 struct _node *next; //链表的下一跳 struct _node *prior; //链表的上一跳 } 阅读全文