会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
神迹丶
学而时习之,不亦说乎?
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
5
6
7
8
9
2020年2月20日
C++ 纯虚函数
摘要: #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 神迹丶
阅读(493)
评论(0)
推荐(0)
2020年2月19日
C++ 按行读取文件并打印
摘要: #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 神迹丶
阅读(2130)
评论(1)
推荐(0)
2020年2月18日
C++ 继承函数
摘要: #include <iostream> using namespace std; class passport { public: passport() //默认构造 { } passport(int id,string tongxingzheng,string mima,string shenfe
阅读全文
posted @ 2020-02-18 10:38 神迹丶
阅读(1363)
评论(0)
推荐(0)
C++结构体和类的区别总结及各自优缺点
摘要: 结构体在栈里。而类在堆里。 结构体为值类型。而类是引用类型 结构体不能被继承,而类可以。 结构体无构造函数 类可以定义虚函数,而结构体不行。 结构在数据参数方面效率更高,简单数组的应用中成本很低。而类在方法运算方面更有优势,在抽象多级别时最佳选择 结构体不能重载。而类可以。
阅读全文
posted @ 2020-02-18 09:15 神迹丶
阅读(2107)
评论(1)
推荐(0)
2020年2月17日
电子表格常用函数
摘要: =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 神迹丶
阅读(171)
评论(0)
推荐(0)
C++ 线程添加互斥量
摘要: //创建互斥量 HANDLE g_hMutex = NULL; WaitForSingleObject(g_hMutex, INFINITE); ReleaseMutex(g_hMutex);
阅读全文
posted @ 2020-02-17 14:50 神迹丶
阅读(221)
评论(0)
推荐(0)
C++ 随机函数/伪随机函数
摘要: 使用rand()函数时,每次随机数都是固定(伪随机数),在前面加上以下函数,每次生成的随机数为随机, srand((int)time(NULL)); rand();
阅读全文
posted @ 2020-02-17 14:49 神迹丶
阅读(439)
评论(0)
推荐(0)
C++ 读取配置文件结束指定进程
摘要: #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 神迹丶
阅读(404)
评论(0)
推荐(0)
SQL查询语句
摘要: //根据时间条件查询表中,每天的数据统计次数SELECT DATE_FORMAT(`report_time` ,'%Y-%m-%d') as shijian,count(*) FROM <表名称> GROUP BY shijian;
阅读全文
posted @ 2020-02-17 14:30 神迹丶
阅读(119)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
公告
网站已运行: