
c++
提及
人之所以言之凿凿,是因为知道的太少 - 弗朗索瓦.基佐
展开
-
c 语言使用 libyaml
只查,不涉及增删改tbox#include <stdio.h>#include <assert.h>#include <string.h>#include <math.h>#include <stdlib.h>#include <stdbool.h>#include <stdint.h>#in...原创 2019-11-09 20:25:20 · 2762 阅读 · 1 评论 -
c++ struct 和 class 初始化的区别
除了默认访问权限的区别以外还有一个地方就是结合 new 的 初始化struct Node{ int i;};void* p = new Node{}; // ok, 和vector 一样void* p = new struct Node{}; // err, 不把Node 当人(calss)看。 // 这属于语法错误:再次...原创 2019-10-21 21:56:31 · 252 阅读 · 1 评论