1.方法声明 在函数声明时,在其名字之前放上一个变量,即是一个方法。这个附加的参数会将该函数附加到这种类型上,即相当于为这种类型定义了一个独占的方法。 package main import "fmt" type People struct { name string age uint8 } fun ...
分类:
其他好文 时间:
2020-08-26 18:54:13
阅读次数:
53
#include "common.h" static pthread_t thread_miccapture; static pthread_t thread_audioplay; static int pthread_run = 0; static pthread_t thread_main; s ...
分类:
其他好文 时间:
2020-08-26 18:48:05
阅读次数:
49
在Linux内核中,用struct cdev来表示字符设备。
分类:
系统相关 时间:
2020-08-26 18:30:57
阅读次数:
49
最近看了《Linux设备驱动详解这本书》,简单总结Linux设备驱动开发的一些基础知识。
分类:
系统相关 时间:
2020-08-25 18:38:10
阅读次数:
58
goshell执行优化版+输出结果为table格式packagemainimport("fmt""github.com/modood/table""golang.org/x/crypto/ssh""io/ioutil""net""time")funcconnect(user,password,host,keystring,portint,cipherList[]string)(*ssh.Sessi
分类:
系统相关 时间:
2020-08-25 15:55:00
阅读次数:
59
问题描述 zabbix server 平稳运行有一段时间了,但是最近问题却来了,今天早上收到zabbixserver磁盘空间不足的告警。通过查看之后发现是大部分数据是zabbix 库的的数据 在进一步查看发现是history表和history_uint数据太多导致磁盘占用过多。 问题分析 histo ...
分类:
其他好文 时间:
2020-08-24 15:15:48
阅读次数:
54
C++中读取文件可以采用几个函数分别为,_findfirst、_findnext、_findclose。其中还要借助结构体 struct _finddata_t,_finddata_t主要用来存储各种文件的信息。 struct _finddata64i32_t { unsigned attrib; ...
分类:
编程语言 时间:
2020-08-21 16:43:25
阅读次数:
156
声明成员变量 class CMyCtrl/CMyView : public CListCtrl/CListView { ... public: CMyCtrl/CMyView(); // 构造函数 protected: const int m_nMinWidth = 80; // 最小列宽(如果不需 ...
分类:
编程语言 时间:
2020-08-20 18:56:44
阅读次数:
64
大家好,本文将会给大家带来Java多态。以上就是本次学习的6大任务。我们依次来看。1Object类Object类是所有Java类的根基类。如果在类的声明中未使用extends关键字指明其基类,则默认基类为Object类。classPerson{}等价于classPersonextendsObject{}1、对象的实例化过程实例化一个类是从最顶级的超类开始实例化的,是一层一层的包裹结构.“先父类后子
分类:
编程语言 时间:
2020-08-20 18:37:02
阅读次数:
69
5.原型模式(面试)介绍原型模式虽然是创建型的模式,但是与工厂模式没有关系,从名字既可看出,该模式的思想就是将一个对象作为原型,对其进行复制,克隆,产生一个和原对象类似的新对象示例先创建一个原型类publicclassPrototypeimplementsCloneable{publicObjectclone()throwsCloneNotSupportedException{Prototypep
分类:
其他好文 时间:
2020-08-20 18:33:00
阅读次数:
52