![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
请叫我算术嘉
快手HDFS
展开
-
C++中使用new占住固定内存
main.cpp #include <cstdlib> #include <iostream> int64_t total = int64_t(128) * 1024 * 1024 * 1024; char * p; int main() { while (total) { // 一次申请500M size_t batch = 1024 * 1024 * 500; batch = batch > total ? total : batch;原创 2021-11-10 14:09:09 · 24881 阅读 · 0 评论 -
python使用ctypes模块调用C++计算斐波那契数列
fbi.cpp // // fbi.cpp // c++_python3 // // Created by 请叫我算术嘉 on 2020/3/14. // Copyright © 2020 请叫我算术嘉. All rights reserved. // #include<iostream> class Fbi{ public: Fbi(){}; ...原创 2020-03-14 17:49:54 · 4393 阅读 · 0 评论