10 2023 档案

摘要:今天写c语言,犯了一个很失败的错误, 类似于 typedef int * intp; intp ptr=(intp)malloc(sizeof(intp)); 如果是int,那么本身占用内存就很小,也许能正确运行代码, 但是如果内存空间大一点的,肯定直接报错了,因为划分的还没要用的多,。。。。编译器 阅读全文
posted @ 2023-10-24 23:14 duxingmengshou 阅读(8) 评论(0) 推荐(0) 编辑
摘要:main.cpp #include <iostream> #include <chrono> #include <cstdio> #include <string> using namespace std; #define test 1 #include "1.c" void startFun(vo 阅读全文
posted @ 2023-10-23 22:20 duxingmengshou 阅读(69) 评论(0) 推荐(0) 编辑
摘要:redis7.2.1在windows中通过docker使用的踩坑,protected-mode 阅读全文
posted @ 2023-10-17 23:15 duxingmengshou 阅读(1654) 评论(0) 推荐(1) 编辑
摘要:01背包问题的子集树搜索如题: 经典01背包问题,直接代码反映心路历程。 //// Created by _thinkPad on 2023/10/16.//#include <iostream>#include <vector>#include <stack>#include <queue>#include <algor 阅读全文
posted @ 2023-10-16 23:13 duxingmengshou 阅读(13) 评论(0) 推荐(0) 编辑