摘要:static void USB_DTask(uint8_t a)
阅读全文
摘要: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<<
阅读全文
摘要:typedef unsigned char uint8_t; //无符号8位数 typedef signed char int8_t; //有符号8位数 typedef unsigned int uint16_t; //无符号16位数 typedef signed int int16_t; //有符
阅读全文
摘要: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';
阅读全文
摘要:typedef struct{ BOOL bRootDevice; }type1;
阅读全文
摘要:GoAhead Web Server,它是一个开源(商业许可)、简单、轻巧、功能强大、可以在多个平台运行的嵌入式Web Server。 GoAhead Web Server的主要特性有: 1. 支持ASP 2. 嵌入式的javascript 3. 标准的CGI执行 4. 内存中的CGI处理GoFro
阅读全文
摘要:qt界面显示网速变化settext卡死 qt界面显示网速变化settext卡死 qt界面显示网速变化settext卡死
阅读全文
摘要:struct sbuffer { struct sbuffer* next; int sz; char* ptr; char data[0]; }; int main() { cout<<sizeof(sbuffer)<<endl; return 0; } 24
阅读全文
摘要:#include <iostream> using namespace std; #include <stdlib.h> #include <stdio.h> #include <stdio.h> #include <memory.h> #include <malloc.h> struct _pag
阅读全文
摘要:#include <stdlib.h>#include <stdio.h> struct _page { struct _page* next; char begin[0];}; int main(){ cout << sizeof(_page) << endl; return 0;} 输出8 ch
阅读全文
摘要:#include <iostream> using namespace std; #include <string.h> #include <stdlib.h> #define ARGS_BUF 1024 #define ARGS_MAX 10 struct args { char buf[ARGS
阅读全文
摘要:https://ithub.com/lvshaco/shaco_first
阅读全文
摘要:http://www.infotmic.com.cn/index.php/zh/jrwm/
阅读全文
摘要:#include <iostream> using namespace std; #include <stdio.h> #include <time.h> #include <sys/time.h> typedef struct { int id; char *ptr; } OSA_IpcShmHn
阅读全文
摘要:static int ReadGpioValue(int r) { char commandBuf[COMMAND_BUF_MAX_SIZE] = {0}; FILE *fp = NULL; int ret = -1, value = -1; snprintf(commandBuf, COMMAND
阅读全文
摘要:#include <stdio.h> #include <time.h> #include <malloc.h> #include <string.h> int StrReplace(char * srcstr, const char * oldstr, const char * newstr) {
阅读全文
摘要:#include "stdafx.h" #include <stdio.h> #include <time.h> #include <malloc.h> /* 获取系统时间 */ void get_sys_time(int *year, int *mon, int *day, int *hour,
阅读全文
摘要://基本数据类型定义 typedef unsigned long RTCbool; typedef unsigned char RTCbyte; typedef long RTCint; typedef unsigned long RTCuint; #if defined(_SOLARIS) ||
阅读全文
摘要:#include <vector> #include <list> using namespace std; typedef std::vector<char> VECTOR_CHAR; typedef std::list<VECTOR_CHAR> VEC_LIST; int _tmain(int
阅读全文
摘要:#ifndef _AUTOREFER_H #define _AUTOREFER_H template <class T> class CAutoRefer { public: CAutoRefer() { m_oper = new T; } CAutoRefer(T * p) { m_oper =
阅读全文