- 博客(4)
- 问答 (3)
- 收藏
- 关注
原创 c++ windows 环境 时间转时间戳 时间戳转时间
//std::string 时间转时间戳time_t TransTimeStringToStamp(const std::string& strTimeString){ struct tm tm; memset(&tm, 0, sizeof(tm));//按照2020-03-31:12:00::00的格式传入 sscanf_s(strTimeString.c_str(), "%d-%d-%d:%d:%d:%d", &tm.tm_...
2022-03-31 13:37:40
1565
原创 Qt QVector对结构体排序
#include <QTime>#include<QDebug>typedef struct _tempstruct{QTime tim;int index;}Tempstruct;//比较函数bool compair(Tempstruct & a,Tempstruct & b);//传入QVector的地方void sortVectbyTime(QVector<Tempstr...
2021-09-13 10:19:41
2368
原创 MFC 子窗体对话框向父窗体发送自定义消息
第一步,在resource.h中添加 static UINT WM_MSG_MYMSG = RegisterWindowMessage(_T("msg"));第二步,在消息接受的窗体,对话框的类的头文件.h添加public: afx_msg LRESULT OnMsgReceive(WPARAM wParam, LPARAM lParam);第三步,在消息接受的窗体,对话框...
2019-07-24 17:38:55
951
1
原创 c++数组作为参数作为返回值的函数操作
#include <iostream>#include <string>using namespace std;//打印字符数组,数组作为参数int PrintStringArray(string * PstrArr,int length){ cout<<"in PrintStringArray():"<<endl; for(int ...
2019-04-11 10:16:52
1686
2
空空如也
xenserver如何使用open vswitch 控制所属的下载网速
2018-03-23
c,c++一个函数返回结构体到底可不可以?
2018-01-15
求正则表达式分离参数
2017-11-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人