上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页
摘要: 入参合法判断 入参若为对象,存取函数打印出异常情况 阅读全文
posted @ 2018-09-16 17:34 友哥 阅读(197) 评论(0) 推荐(0)
摘要: 全局变量在main函数之前初始化原则上禁止拷贝构造函数和赋值函数如果只有数据,没有方法,可以用struct析构函数声明为虚函数尽量避免重载操作符 难以定位的bug 误以为简单的操作存取控制 可以放到声明文件中 输入参数为值或者常数引用,输出参数为指针overloading 函数名相同,但是参数不同o 阅读全文
posted @ 2018-09-16 11:57 友哥 阅读(146) 评论(0) 推荐(0)
摘要: 不会转发到子类中 阅读全文
posted @ 2018-09-16 10:56 友哥 阅读(200) 评论(0) 推荐(0)
摘要: 在最近使用的地方,再声明和定义 阅读全文
posted @ 2018-09-16 10:51 友哥 阅读(203) 评论(0) 推荐(0)
摘要: 调研 整理思路 流程图 类设计 序列图(可能) 阅读全文
posted @ 2018-09-15 17:15 友哥 阅读(212) 评论(0) 推荐(0)
摘要: int handler::sample_next(uchar *buf) { // Temporary set inited to RND, since we are calling rnd_next(). int res = rnd_next(buf); std::uniform_real_distribution rnd(0.0, 1.0); while (!res && ... 阅读全文
posted @ 2018-09-15 15:29 友哥 阅读(381) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-09-13 19:20 友哥 阅读(353) 评论(0) 推荐(0)
摘要: #include #include int main(int argc, char **argv) { MYSQL *con = mysql_init(NULL); if (con == NULL) { fprintf(stderr, "%s\n", mysql_error(con)); exit(1); } if (mysql_real_c... 阅读全文
posted @ 2018-09-13 19:07 友哥 阅读(1015) 评论(1) 推荐(0)
摘要: #include using namespace std; /* start of Enclosing class declaration */ class Enclosing { private: int x; /* start of Nested class declaration */ class Nested { ... 阅读全文
posted @ 2018-09-13 11:56 友哥 阅读(161) 评论(0) 推荐(0)
摘要: a 阅读全文
posted @ 2018-09-12 15:01 友哥 阅读(100) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页