摘要:
#include <iostream>using namespace std;class User{ public: int age; int number; User() { cout << "this is User contructor\r\n"; } User& operator=(cons 阅读全文
posted @ 2020-12-07 20:15
MaxBruce
阅读(197)
评论(0)
推荐(0)
摘要:
join 操作 阅读全文
posted @ 2020-12-07 17:04
MaxBruce
阅读(82)
评论(0)
推荐(0)
摘要:
对于常规的Web攻击手段,如XSS、CRSF、SQL注入、(常规的不包括文件上传漏洞、DDoS攻击)等,防范措施相对来说比较容易,对症下药即可,比如XSS的防范需要转义掉输入的尖括号,防止CRSF攻击需要将cookie设置为httponly,以及增加session相关的Hash token码 ,SQ 阅读全文
posted @ 2020-12-07 11:31
MaxBruce
阅读(206)
评论(0)
推荐(0)
摘要:
视图的查找 asp.net MVC 不需要用using 释放资源 阅读全文
posted @ 2020-12-07 11:28
MaxBruce
阅读(62)
评论(0)
推荐(0)
摘要:
1.1 malloc的全称是memory allocation,中文叫动态内存分配。原型:extern void *malloc(unsigned int num_bytes);说明:分配长度为num_bytes字节的内存块。如果分配成功则返回指向被分配内存的指针,分配失败返回空指针NULL。当内存 阅读全文
posted @ 2020-12-07 08:30
MaxBruce
阅读(209)
评论(0)
推荐(0)
摘要:
1. 申请的内存所在位置 new操作符从自由存储区(free store)上为对象动态分配内存空间,而malloc函数从堆上动态分配内存。 自由存储区是C++基于new操作符的一个抽象概念,凡是通过new操作符进行内存申请,该内存即为自由存储区。而堆是操作系统中的术语,是操作系统所维护的一块特殊内存 阅读全文
posted @ 2020-12-07 08:22
MaxBruce
阅读(217)
评论(0)
推荐(1)
摘要:
#include <iostream>using namespace std;class user{ public: int age; int number; void test() { printf("this is user test function \t"); } virtual void 阅读全文
posted @ 2020-12-07 07:54
MaxBruce
阅读(321)
评论(0)
推荐(0)

浙公网安备 33010602011771号