自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(121)
  • 资源 (4)
  • 收藏
  • 关注

原创 翻页按钮布局

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><met

2018-06-21 00:13:40 2292

原创 各元素特征

块元素特征1 在没有设置宽度的时候默认撑满一行2 默认块元素独占一行3 支持所有CSS命令内联元素的特征1 宽高由内容撑开2 不支持宽高3 一行上可以继续显示跟同类的标签4 不支持上下的margin5 代码换行被解析(两个标签之前有空隙)inline-block的特征1 块元素在一行上显示2 内联元素支持宽高3 没有宽度时,内容撑开宽度...

2018-06-21 00:12:55 1122

原创 a标签超链接使用

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><met

2018-06-20 21:00:56 390

原创 margin注意的问题

1 margin-top父级会被传递,加上边框会解决这个问题2 margin上下叠压解决技巧 :还是使用margin,但是将某一个元素设置成预想的。margin叠压会取最大的那个值。...

2018-06-20 17:40:59 381

原创 padding的复合写法

1 只有一个属性值时,四个方向是同一个值2 只有两个属性值时,第一个属性值是上下两个方向,第二个属性值是左右两个方向3 只有三个属性值时,第一个是上边的方向,第二个是左右两个方向,第三个是下面那个方向4 有四个属性值时,第一个上,第二个右,第三个下,第四个左...

2018-06-20 03:47:29 1610

原创 文本处理

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><met

2018-06-20 02:26:06 180

原创 行高特性,行高设置方法

多行文字测量行高的方法1 确认文字大小2 确认两行文字之间的空隙大小3 空隙大小除以2 ,得出来的数值是每行文字上下空隙的大小    3.1 当行高为奇数时,文字的上方要比下方多一个像素    3.2 当行高为偶数时,上下方一样<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/T...

2018-06-20 01:59:36 802

原创 dreamweaver没有中文字体

1 点击修改 ,选择字体家族2 输入宋体2 3 选择宋体, 点击向左的双箭头4 点击确定,就添加完成了

2018-06-20 01:24:50 2314

原创 边框设置

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><met

2018-06-20 01:09:05 221

原创 body背景设置

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><met

2018-06-19 23:36:58 827

原创 背景颜色及图片定位

1;有时候可能会出现背景图片显示不出来的情况,可能因为图片太大。2:当重复的时候再定位,不会在前面留空白,会把后面没显示完的补上。3:定位可以设置负值<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&g...

2018-06-19 22:51:18 754

原创 连接外部的样式表

有时候直接写href,可能没有那个浏览文件按钮,可以选中,在下面写<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/...

2018-06-19 21:49:58 3167

原创 内部样式表

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><met

2018-06-19 21:38:27 278

原创 制作的第一个简单的网页

<!document><html> <head> <meta charset="UTF-8" /> <title>标题 - title</title> </head> <body> 内容 - content <!--行间注释表 -

2018-06-19 19:24:28 5022

原创 QT标准颜色对话框

dialog.h#ifndef DIALOG_H#define DIALOG_H#include <QLineEdit>#include <QDialog>#include <QGridLayout>namespace Ui {class Dialog;}class Dialog : public QDialog{ Q_OBJECT...

2018-05-23 22:13:49 282

原创 QT标准文件对话框

dialog.h#ifndef DIALOG_H#define DIALOG_H#include <QLineEdit>#include <QDialog>#include <QGridLayout>namespace Ui {class Dialog;}class Dialog : public QDialog{ Q_OBJECT...

2018-05-23 21:33:03 173

原创 QT控制输入条件

dialog.h#ifndef DIALOG_H#define DIALOG_H#include <QDialog>namespace Ui {class Dialog;}class Dialog : public QDialog{ Q_OBJECTpublic: explicit Dialog(QWidget *parent = 0); ...

2018-05-23 17:08:49 449

原创 Qt的几个常用算法

出现了这个错误,因为两个命名重复了。#include "mainwindow.h"#include <QApplication>#include <QDebug>int main(int argc, char *argv[]){ QApplication a(argc, argv); double aa = -19.3; double b =...

2018-05-21 15:29:43 2077

原创 在QMap中的插入,遍历,修改

#include "mainwindow.h"#include <QApplication>#include <QDebug>int main(int argc, char *argv[]){ QApplication a(argc, argv); QMap<QString,QString> map; map.insert("be...

2018-05-21 14:50:32 13721

原创 通过控制台程序实现QList读写遍历方法

#include "mainwindow.h"#include <QApplication>#include <QDebug>int main(int argc, char *argv[]){ QString str = "Welcome to you "; qDebug() << str; QApplication a(argc...

2018-05-18 21:40:57 4090

原创 编写代码的方式来实现计算圆面积的功能

这里要把复选框去掉出现了一个这样的bug,最后查明原因是点击打开链接解决方法如下#include "mainwindow.h"#include <QGridLayout>MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent){ QWidget *widget = new QWidget();//...

2018-05-18 14:39:54 4113 1

原创 QT概述

今天按照这本书安装了QT5.8,1.2GB,我的手机流量啊。安装很简单然后运行了一下实例程序,有很多有趣的东西,运行之前需要配置一下。下面来介绍一下我的第一个程序,虽然以前做过Linux的,今天来系统学习下windows的(1)运行,进入欢迎界面,单机new project按钮(2)单机选择项目application -> Qt Widegets Application -> .......

2018-05-18 12:21:31 198

原创 联合体使用

Union类型的变量中,允许装入该union所定义的任何一种数据,所以union变量的长度等于各成员中最长的长度。对于联合的不同成员赋值, 将会对其它成员重写,  原来成员的值就不存在了, 而对于结构的不同成员赋值是互不影响的。  在任何同一时刻,联合体只存放了一个变量,而结构的所有成员都在。要注意以下两种情况。(1)由于联合体内的成员共享内存,而静态数据成员或引用成员均不能共享内存,所以不能用这...

2018-05-15 20:15:59 688

原创 用向量改进内存的再分配

当在某个缓存中存储数据时,常常需要在运行的时候调整该缓存的大小 ,以便能容纳更多的数据。传统的内存再分配技术非常繁琐而且容易出错。但是向量与数组不同,当内存用尽时,将继续分配更大的连续内存区,将原先的内存复制到新的内存区,并释放旧的内存区。#include <iostream>#include <stdio.h>#include <stdlib.h>usi...

2018-05-14 14:02:20 253

原创 冒泡排序法重温

#include <iostream>#include <stdio.h>#include <stdlib.h>using namespace std;/*自己预测5,4,3,2,14,3,2,1,5 i = 0 j < 43,2,1,4,5 i = 1 j < 32,1,3,4,5 i = 2 j < 21,2,3,4,5 ...

2018-05-13 22:42:43 118

原创 codeblock void main出错

#include <iostream>#include <stdio.h>#include <stdlib.h>using namespace std;void main(){ int a = 0; cout << a << endl;}编译出错

2018-05-13 16:33:27 869 1

原创 scanf()函数使用隐患

#include <iostream>#include <stdio.h>#include <stdlib.h>using namespace std;int main(){ char a[5]; scanf("%s", a); printf("a = %s", a); return 0;}字符串a的长度是5,输入...

2018-05-12 20:49:17 288

原创 使用已释放的内存

#include <iostream>#include <stdio.h>#include <stdlib.h>using namespace std;char *getmemory(void){ char p[] = "hello world"; return p;}int main(){ char *str = NU...

2018-05-11 21:20:11 1152 1

原创 字符串复制

#include <iostream>#include <stdio.h>#include <stdlib.h>using namespace std;void fun(char *dest, char *source){ while((*dest = *source) != '\0') { dest++; ...

2018-05-10 20:20:55 140

原创 二维数组指针输出

#include <iostream>using namespace std;int fun(int x, ...){ int arr[2][3] = {2,4,10,12,13,15}; cout << arr[1][1] << endl; cout << *(arr[1] + 1) << endl;...

2018-05-09 22:18:09 670

原创 算术运算操作数类型有误

C++语言中的运算分为有符号和无符号运算,执行算数运算时,如果操作数的类型不同,在运算过程中,编译器会自动转换操作数类类型,使其一致。这种转换因编程语言的标准不同,其转换方式也各异。#include <iostream>using namespace std;int fun(int x, ...){ unsigned char a = 254; signed ...

2018-05-09 16:07:21 532

原创 a = '1' 与 a = 1的区别

#include <iostream>using namespace std;int fun(int x, ...){ char a = '252'; cout << a <<endl; int b; b = a; return b;}int main(){ int n; n = fun(1...

2018-05-09 15:53:30 1673

原创 省略号表示参数个数可变

#include <iostream>using namespace std;#define TRUE 1#define FALSE 0#define N 2+3int fun(int x, ...){ return x;}int main(){ int n; n = fun(1,2,3); cout << n <...

2018-05-08 21:58:55 307

原创 拼接窄的和宽的字符串

#include <iostream>using namespace std;#define TRUE 1#define FALSE 0#define N 2+3void fun(){ wchar_t arrayj[] = L"Hello" L"wrold"; char a[] = "aa" "sfd"; cout << a &amp

2018-05-08 17:26:54 351

原创 将False定义为1

#include <iostream>using namespace std;#define FALSE 1void fun(){ if (false) { cout << "hello1" << endl; } if (FALSE) { cout << "hello...

2018-05-08 16:43:39 495

原创 #define的边缘效应

#include <iostream>using namespace std;#define TRUE 1#define FALSE 0#define N 2+3void fun(){ double a = 3.0/2; double b = N/2; double c = double(N)/2; double d = 3/2; ...

2018-05-08 16:37:52 810

原创 统一区域内变量重名

#define TRUE 1#define FALSE 0#define PI 3.1455void fun(){ int a = 0; bool b = true; if(b) { int a = 100; a = a + 1; } cout << a << endl;}int m...

2018-05-08 16:26:48 167

原创 精灵冲突检测

#遇见两种bug,一个是导入MyLibrary 必须是python文件#第二个是由于MyLibrary缺少函数,导致元素对象没有collideimport itertools, sys, time, random, math, pygamefrom pygame.locals import *from MyLibrary import *def calc_velocity(direct...

2018-04-27 12:47:24 482

原创 tensorflow保存python文件

2018-04-26 23:06:12 280

原创 用精灵实现动画

import pygamefrom pygame.locals import *class MySprite(pygame.sprite.Sprite):#image图像,rect位置 def __init__(self, target): pygame.sprite.Sprite.__init__(self) self.target_surface ...

2018-04-26 22:24:05 926

ege-自制迷宫

这个程序是自己编的迷宫,直接打开1.exe就可以运行,想玩的可以试一下。相信你也想编出自己的游戏吧。

2015-10-25

EGE(已下载)

这是已下载的EGE,里面有教程,关于各个函数的介绍以及示例程序。有

2015-10-25

ege图形库-c++

本图形库适用于vc6.0,这是一个安装程序,安装的时候看好,先把广告去掉,Windows8也能用,需要正确安装。里面有现成的例子及使用手册,非常全面。

2015-10-16

空空如也

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

TA关注的人

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