摘要:
=vlookup(要查找的单元格,查找范围,查找的第几列数值,匹配参数(0 精确匹配 ,1模糊匹配)) //vlooup例子:查找下图中,姓名为张三的id =VLOOKUP(A2,$A$2:$C$3,2,0) //sumifs函数, 按条件查找B2-B3中id为2,并且姓名为李四的成绩之和 =SUM 阅读全文
摘要:
//创建互斥量 HANDLE g_hMutex = NULL; WaitForSingleObject(g_hMutex, INFINITE); ReleaseMutex(g_hMutex); 阅读全文
摘要:
使用rand()函数时,每次随机数都是固定(伪随机数),在前面加上以下函数,每次生成的随机数为随机, srand((int)time(NULL)); rand(); 阅读全文
摘要:
#define _CRT_SECURE_NO_WARNINGS #include <string> #include <windows.h> #include <stdint.h> #include <tlhelp32.h> #include <iostream> #include <vector> 阅读全文
摘要:
//根据时间条件查询表中,每天的数据统计次数SELECT DATE_FORMAT(`report_time` ,'%Y-%m-%d') as shijian,count(*) FROM <表名称> GROUP BY shijian; 阅读全文