上一页 1 ··· 5 6 7 8 9
摘要: #include <iostream> #include <vector> using namespace std; class reslut { public: reslut() { } int get_a() { return a; } int get_b() { return b; } voi 阅读全文
posted @ 2020-02-20 16:18 神迹丶 阅读(489) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<fstream> #include<string> #include <vector> #include <vector> using namespace std; void write_file() { string ttt; cin >> 阅读全文
posted @ 2020-02-19 10:26 神迹丶 阅读(2098) 评论(1) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class passport { public: passport() //默认构造 { } passport(int id,string tongxingzheng,string mima,string shenfe 阅读全文
posted @ 2020-02-18 10:38 神迹丶 阅读(1356) 评论(0) 推荐(0) 编辑
摘要: 结构体在栈里。而类在堆里。 结构体为值类型。而类是引用类型 结构体不能被继承,而类可以。 结构体无构造函数 类可以定义虚函数,而结构体不行。 结构在数据参数方面效率更高,简单数组的应用中成本很低。而类在方法运算方面更有优势,在抽象多级别时最佳选择 结构体不能重载。而类可以。 阅读全文
posted @ 2020-02-18 09:15 神迹丶 阅读(2018) 评论(1) 推荐(0) 编辑
摘要: =vlookup(要查找的单元格,查找范围,查找的第几列数值,匹配参数(0 精确匹配 ,1模糊匹配)) //vlooup例子:查找下图中,姓名为张三的id =VLOOKUP(A2,$A$2:$C$3,2,0) //sumifs函数, 按条件查找B2-B3中id为2,并且姓名为李四的成绩之和 =SUM 阅读全文
posted @ 2020-02-17 15:40 神迹丶 阅读(158) 评论(0) 推荐(0) 编辑
摘要: //创建互斥量 HANDLE g_hMutex = NULL; WaitForSingleObject(g_hMutex, INFINITE); ReleaseMutex(g_hMutex); 阅读全文
posted @ 2020-02-17 14:50 神迹丶 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 使用rand()函数时,每次随机数都是固定(伪随机数),在前面加上以下函数,每次生成的随机数为随机, srand((int)time(NULL)); rand(); 阅读全文
posted @ 2020-02-17 14:49 神迹丶 阅读(407) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include <string> #include <windows.h> #include <stdint.h> #include <tlhelp32.h> #include <iostream> #include <vector> 阅读全文
posted @ 2020-02-17 14:45 神迹丶 阅读(389) 评论(0) 推荐(0) 编辑
摘要: //根据时间条件查询表中,每天的数据统计次数SELECT DATE_FORMAT(`report_time` ,'%Y-%m-%d') as shijian,count(*) FROM <表名称> GROUP BY shijian; 阅读全文
posted @ 2020-02-17 14:30 神迹丶 阅读(112) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9
网站已运行: