自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 1434

原创 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 1986

原创 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 864 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 1605 2

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除