logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

c++ 获取当前时间(年月日时分秒)

#include <stdio.h>#include <windows.h>int main(){SYSTEMTIME st;GetLocalTime(&st);printf("%d-%02d-%02d %02d:%02d:%02d",st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.w...

#c++
c++ 可用COM口(串口号)自动获取,并按序号排序

有时在做串口相关功能时需要获取相应的串口号,并对顺序进行一下排序。下面是小编总结的一些代码,供参考。#include <stdio.h>#include <string>#include <vector>#include <algorithm>#include <Windows.h>#include <tchar.h...

到底了