Originally, structs in C suffered many of the same deficiencies as arrays, but it was commonplace even before the ANSI C Standard for compilers to support struct assignments, struct arguments, and struct function return values. Structs in modern C are almost first class types, but they still lack support for comparisons for equality or inequality using the == and != operators. The C committee has entertained proposals for supporting == and != for structs, but the debate over how to treat union members of structs caused the proposal to be shelved.
基于1个网页-相关网页
I recommend creating a command struct with fields and codes to represent commands and their arguments.
我建议用字段和代码创建一个命令结构来表示命令及其参数。
A class or struct may have multiple constructors that take different arguments.
一类或结构可以有多个构造函数以不同参数。
A class or struct may have multiple constructors that take different arguments.
类或结构可能有多个接受不同参数的构造函数。
应用推荐