随笔分类 -  c++语言

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 26 下一页

c++语言
摘要:static void USB_DTask(uint8_t a) 阅读全文

posted @ 2022-10-30 16:33 lydstory 阅读(26) 评论(0) 推荐(0)

摘要:int cmp(int a, int b) { return (a > b)?1:((a == b )?0:-1); } int _tmain(int argc, _TCHAR* argv[]) { int a = 2; int b = 3; cout<<cmp(a,b)<<endl; cout<< 阅读全文

posted @ 2022-09-23 18:34 lydstory 阅读(69) 评论(0) 推荐(0)

摘要:typedef unsigned char uint8_t; //无符号8位数 typedef signed char int8_t; //有符号8位数 typedef unsigned int uint16_t; //无符号16位数 typedef signed int int16_t; //有符 阅读全文

posted @ 2022-09-08 10:01 lydstory 阅读(230) 评论(0) 推荐(0)

摘要:void set_led_blink(char *path , int state) { int fd; char buf; switch(state) { case 0: buf = '0'; break; case 1: buf = '1'; break; case 2: buf = '2'; 阅读全文

posted @ 2022-06-16 04:54 lydstory 阅读(87) 评论(0) 推荐(0)

摘要:typedef struct{ BOOL bRootDevice; }type1; 阅读全文

posted @ 2022-04-11 00:12 lydstory 阅读(33) 评论(0) 推荐(0)

摘要:GoAhead Web Server,它是一个开源(商业许可)、简单、轻巧、功能强大、可以在多个平台运行的嵌入式Web Server。 GoAhead Web Server的主要特性有: 1. 支持ASP 2. 嵌入式的javascript 3. 标准的CGI执行 4. 内存中的CGI处理GoFro 阅读全文

posted @ 2022-03-02 13:47 lydstory 阅读(151) 评论(0) 推荐(0)

摘要:qt界面显示网速变化settext卡死 qt界面显示网速变化settext卡死 qt界面显示网速变化settext卡死 阅读全文

posted @ 2022-03-02 12:56 lydstory 阅读(104) 评论(0) 推荐(0)

摘要:struct sbuffer { struct sbuffer* next; int sz; char* ptr; char data[0]; }; int main() { cout<<sizeof(sbuffer)<<endl; return 0; } 24 阅读全文

posted @ 2022-02-17 05:18 lydstory 阅读(29) 评论(0) 推荐(0)

摘要:#include <iostream> using namespace std; #include <stdlib.h> #include <stdio.h> #include <stdio.h> #include <memory.h> #include <malloc.h> struct _pag 阅读全文

posted @ 2022-02-17 05:13 lydstory 阅读(60) 评论(0) 推荐(0)

摘要:#include <stdlib.h>#include <stdio.h> struct _page { struct _page* next; char begin[0];}; int main(){ cout << sizeof(_page) << endl; return 0;} 输出8 ch 阅读全文

posted @ 2022-02-17 05:03 lydstory 阅读(35) 评论(0) 推荐(0)

摘要:#include <iostream> using namespace std; #include <string.h> #include <stdlib.h> #define ARGS_BUF 1024 #define ARGS_MAX 10 struct args { char buf[ARGS 阅读全文

posted @ 2022-02-17 04:19 lydstory 阅读(67) 评论(0) 推荐(0)

摘要:https://ithub.com/lvshaco/shaco_first 阅读全文

posted @ 2022-02-17 03:53 lydstory 阅读(39) 评论(0) 推荐(0)

摘要:http://www.infotmic.com.cn/index.php/zh/jrwm/ 阅读全文

posted @ 2022-02-16 05:01 lydstory 阅读(23) 评论(0) 推荐(0)

摘要:#include <iostream> using namespace std; #include <stdio.h> #include <time.h> #include <sys/time.h> typedef struct { int id; char *ptr; } OSA_IpcShmHn 阅读全文

posted @ 2022-02-16 04:32 lydstory 阅读(623) 评论(0) 推荐(0)

摘要:static int ReadGpioValue(int r) { char commandBuf[COMMAND_BUF_MAX_SIZE] = {0}; FILE *fp = NULL; int ret = -1, value = -1; snprintf(commandBuf, COMMAND 阅读全文

posted @ 2022-02-16 02:35 lydstory 阅读(48) 评论(0) 推荐(0)

摘要:#include <stdio.h> #include <time.h> #include <malloc.h> #include <string.h> int StrReplace(char * srcstr, const char * oldstr, const char * newstr) { 阅读全文

posted @ 2022-01-24 23:26 lydstory 阅读(104) 评论(0) 推荐(0)

摘要:#include "stdafx.h" #include <stdio.h> #include <time.h> #include <malloc.h> /* 获取系统时间 */ void get_sys_time(int *year, int *mon, int *day, int *hour, 阅读全文

posted @ 2022-01-24 19:07 lydstory 阅读(1425) 评论(0) 推荐(0)

摘要://基本数据类型定义 typedef unsigned long RTCbool; typedef unsigned char RTCbyte; typedef long RTCint; typedef unsigned long RTCuint; #if defined(_SOLARIS) || 阅读全文

posted @ 2022-01-24 02:40 lydstory 阅读(52) 评论(0) 推荐(0)

摘要:#include <vector> #include <list> using namespace std; typedef std::vector<char> VECTOR_CHAR; typedef std::list<VECTOR_CHAR> VEC_LIST; int _tmain(int 阅读全文

posted @ 2022-01-24 01:54 lydstory 阅读(22) 评论(0) 推荐(0)

摘要:#ifndef _AUTOREFER_H #define _AUTOREFER_H template <class T> class CAutoRefer { public: CAutoRefer() { m_oper = new T; } CAutoRefer(T * p) { m_oper = 阅读全文

posted @ 2022-01-20 23:57 lydstory 阅读(71) 评论(0) 推荐(0)

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 26 下一页

导航