摘要: Engilsh Version Low-Level Errors When using Gorm statements, the model was not specified (missing .Model or .TableName methods). Forgot to change the 阅读全文
posted @ 2021-12-15 11:36 临卓 阅读(33) 评论(0) 推荐(0) 编辑
摘要: Introduce: This is a backend program that periodically pushes academic information to teachers. The scheduled push functionality is implemented using 阅读全文
posted @ 2021-12-15 11:36 临卓 阅读(161) 评论(0) 推荐(0) 编辑
摘要: English Version Overlooked Areas in Development: Did not check if the data conforms to the model before unmarshaling. Failed to verify which projects 阅读全文
posted @ 2021-12-15 11:27 临卓 阅读(42) 评论(0) 推荐(0) 编辑
摘要: C++友元 1. 成员函数做友元 (有大坑) 翻译:假设有A,B两类,A中的成员函数成为了B的友元,该函数就能访问B的私有属性。 首先声明定义A,B两个类 , 这里的先后顺序是有讲究的,必须要先声明被访问私有属性的类,此处为B;然后声明+定义私有属性访问者A。 class B;class A{pub 阅读全文
posted @ 2021-10-26 17:06 临卓 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 函数重载 编译时根据传入参数的个数,数据类型等给函数添加修饰符,使其实质上编译成不同的函数。 根据传入的数据类型确定调用函数, C++中NULL匹配长整型 viod print(long) main(){ print(NULL)} 可以输出。 函数模板 实现泛型编程(Generic Programm 阅读全文
posted @ 2021-04-17 20:29 临卓 阅读(51) 评论(0) 推荐(0) 编辑