2018年2月1日

抛硬币的模拟

摘要: #include#include#define CALLOC(P, N, S)\ if(!((P)=calloc(N, S))){\ printf( stderr, "Insufficient memory");\ exit(EXIT_FAILURE);\ }in... 阅读全文

posted @ 2018-02-01 14:07 MACHINE_001 阅读(268) 评论(0) 推荐(0) 编辑

埃拉托色尼筛算法查找素数(动态内存实现)

摘要: #include#include#define CALLOC(P, N, S)\ if(!((P)=calloc(N, S))){\ printf( stderr, "Insufficient memory");\ exit(EXIT_FAILURE);\ } ... 阅读全文

posted @ 2018-02-01 12:20 MACHINE_001 阅读(83) 评论(0) 推荐(0) 编辑

导航