简述
现在csdn因为分类一开始没设计好导致越来越繁复,导致查询复盘越来越困难,所以现在选择MarkDown编辑器,选择在本地使用Tpora编辑后直接上传到网站博客保存,所以对博客需要比较高的要求,首先分类要方便简洁,便于查询;再者需要移动端,可以方便查看,这样就排除了博客园等没有移动端的网站。因为本身对其他人写的博客没有浏览要求,所以只要保证网站本身好用,存活能力高即可。初步选择简书
代码测试
static void MCMF_alloc_buffer(MRTA_MCMF_SPEC *spec, uint32_t matrix_size, uint8_t *work_buf, int64_t *work_size){
int64_t size = 0;
int64_t used_size = 0;
uint8_t *acc_buf = MRTA_NULL;
acc_buf = work_buf;
size = sizeof(MRTA_MCMF_SPEC);
size = size = MRTA_SIZE_ALIGN_128(size);
acc_buf += size;
used_size += size;
size = matrix_size*sizeof(MCMF_EDGE);
size = MRTA_SIZE_ALIGN_128(size);
spec->edge = (MCMF_EDGE *)acc_buf;
acc_buf += size;
used_size += size;
size = matrix_size*sizeof(bool);
size = MRTA_SIZE_ALIGN_128(size);
spec->vis = (bool *)acc_buf;
acc_buf += size;
used_size += size;
size = matrix_size*sizeof(int32_t);
size = MRTA_SIZE_ALIGN_128(size);
spec->head = (int32_t *)acc_buf;
acc_buf += size;
used_size += size;
size = matrix_size*sizeof(int32_t);
size = MRTA_SIZE_ALIGN_128(size);
spec->dis = (int32_t *)acc_buf;
acc_buf += size;
used_size += size;
size = matrix_size*sizeof(int32_t);
size = MRTA_SIZE_ALIGN_128(size);
spec->pre = (int32_t *)acc_buf;
acc_buf += size;
used_size += size;
size = matrix_size*sizeof(int32_t);
size = MRTA_SIZE_ALIGN_128(size);
spec->pos = (int32_t *)acc_buf;
acc_buf += size;
used_size += size;
*work_size = used_size;
}
确认格式
以后行头固定先目录,标题为四级标题,分类确定为工作、刷题、知识、随笔。其中工作记录工作有关事项,刷题记录算法题目等,知识记录编程有关的知识,随笔记录日常心情等。简书不支持目录,有点垃圾
网友评论