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