摘要:2020-08-02 21:36:52 准备的面试题: 1. new和malloc的区别 malloc是一个函数,new是一个关键字,需要编译器的支持。 new出来的东西放在自由存取区上, malloc放在堆上。 new返回的是对象指针,malloc返回的是void* new可以重载 2. 左值引用
阅读全文
摘要:https://leetcode.com/problems/lexicographical-numbers/description/ 前20个是 1, 10, 11, 12, 13, 14, .....19 2, 20, 3, 4, 5, 6, ....9
阅读全文
摘要:一些命令: show create teble table_name \G; MYSQL压力测试之mysqlslap create table user2(userid int(4) primary key not null auto_increment, id int); package main
阅读全文
摘要:※:docker中跑nginx,即使volume了,还是需要进去nginx哪里reload,才能使配置文件生效,语法是:nginx -s reload,用service nginx reload也可以,但是这样不会检查nginx语法,就是dafault.conf有错误也不能被识别出来。 nginx配
阅读全文