-
C++的new&delete
C++的newdelete new的过程 new的过程: 先分配memory,再调用ctor 我们常用的创建对象的方法有两种 Complex c(1,2); //栈Complex *pc = new Complex(1,2); //堆 第一种创建出来的对象将保存在栈上,第二种则在堆上,必须手动回收内存空间(通过delete) 为了解释new的...
-
PWN之Canary学习
PWN之Canary学习 Canary 参考链接:https://ctf-wiki.github.io/ctf-wiki/pwn/linux/mitigation/canary-zh/ 0x1 简介: 用于防止栈溢出被利用的一种方法,原理是在栈的ebp下面放一个随机数,在函数返回之前会检查这个数有没有被修改,就可以检测是否发生栈溢出了。 0x2...
-
stl_list复习
stl_list复习 #include iostream #include list #include algorithm using namespace std; //底层结构是双向链表 struct Node{ int a; char c; }; struct Node1{ //重点中的重点 int a; char c; Node1(int d,char e) { a=d; c=e; } bool operator==(const Node1 i) { i...
-
使用 linux kernel +busybox 定制linux系统
使用 linux kernel +busybox 定制linux系统 目的: 了解linux的启动过程 主要内容: 1.grub 是启动程序的bootloader 2.linux-kernel 是linux的开源内核 3.busybox 是linux的工具集合 启动顺序: grub- bzimage initrd init chroot sbin/init (从内存镜像转换成rootfs)/...
-
stl_vector复习
stl_vector复习 #include iostream #include vector #include algorithm //for_each #include ctime using namespace std; void STRConstructor() //初始化,输入 { vectorint vec(5,12); //cout vec endl; 错误 vectorint vec1(5); for(int i=0;i5;i++) cout vec1[i]...
-
wordpress 配置坑详解
wordpress 配置坑详解 首先 经过我测试,php74模块没有支持apache的.所以升级到php74 之后,php无法使用. 最基本的函数phpinfo 调用不出来,没有相关的模块. 安装mariadb 10.4 之后发现,mariadb 这个版本好像不支持密码(反正我是没搞定,一天) .改配置什么的我都试了,仍然...
2020-02-10 16:02:00 配置虚拟主机wordpress文件服务器mysqlphpword新网安全策略网站目录
-
stl_string复习
stl_string复习 #include iostream #include string #include algorithm using namespace std; void definition() //定义 { string str(5,'a'); cout str endl; string str1("abcdefghijklmn"); cout str1 endl; string str2("123456789",3); cout str2 endl; string s...
-
SpringBoot 集成Log4j、集成AOP
SpringBoot 集成Log4j、集成AOP 集成Log4j (1)在pom.xml中添加依赖 !-- 去掉springboot默认的日志 -- dependency groupId org.springframework.boot / groupId artifactId spring-boot-starter / artifactId exclusions exclusion groupId org.springframework.boot...
-
异常输出
异常输出 更新记录 【1】2020.02.09-11:14 1.完善了文章 正文 在学习异常处理这一章时,我写了一段代码用来模拟异常的发生: public class exception { public static void main(String[] args) { int a = 3, b = 0; System.out.println(start); System.out.println(a/...
-
抛出异常
抛出异常 更新记录 【1】2020.02.09-18:15 1.完善内容 正文 我们去学习Java的异常处理的时候,肯定写过抛出异常的方法 但是如果你将代码改成这个样子: public class exception { public static void test() throws ClassCastException{ int[] arr = new int[-3]; } pu...
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
