新货 | C/C++ 库
通信开发库 libComm V2.10 正式发布了!!!
下载地址 libComm V2.10
Allen Optimized Config Object Notation
下载地址 cos V0.2
COS brief introduction
1. 变量赋值 variable = value; 例如: a = 1; b = 2.3; c = "Common Object Storage"; 2. 数组对象赋值 array_object = {value0, value1, ...}; 例如: score = {95, 92, 97, 88}; price = {12.34, 23.45, 34.56}; country = {"China", "Russia", "Amrica"}; 3. 结构体和类对象赋值 3.1. 显式成员变量赋值 class_object = {member_variable0 = type0_value0, member_variable1 = type1_value1, ...}; 例如: student = {name = "Allen", age = 16, sexy = "male"}; book = {name = "Getting started with COS", writer = "Allen", id = "12345678", price = 21}; account = {uid = "Allen123", pwd = "66666666", type = "Admin", creaion_time = "2020/01/02 12:34:567"}; 3.2. 隐式成员变量赋值 3.3.1. 成员变量类型不一致 class_object = {type0_value0, type1_value1, ...}; 例如: student = {"Allen", 16, "male"}; book = {"Getting started with COS", "Allen", "12345678", 21}; 3.3.2. 成员变量类型一致(退化成数组) class_object = {value0, value1, ...}; 例如: account = {"Allen123", "66666666", "Admin", "2020/01/02 12:34:567"}; 4. 嵌套(进化成树) 例如: brief_intro = { { name = "Allen", age = 18, skill = {"C/C++", "PHP", "XML" } }, { name = "Jack", age = 19, skill = {"VB", "VBS", "Java", "JavaScript" } } };