码迷,mamicode.com
首页 >  
搜索关键字:typedef struct    ( 24378个结果)
Linux字符设备驱动的注册
在Linux内核中,用struct cdev来表示字符设备。
分类:系统相关   时间:2020-08-26 18:30:57    阅读次数:49
Linux驱动开发基础
最近看了《Linux设备驱动详解这本书》,简单总结Linux设备驱动开发的一些基础知识。
分类:系统相关   时间:2020-08-25 18:38:10    阅读次数:58
go shell执行优化版+ 输出结果为table格式
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
C++ 中利用 _findfirst遍历所有文件夹及文件,以及findnext win10报错解决办法
C++中读取文件可以采用几个函数分别为,_findfirst、_findnext、_findclose。其中还要借助结构体 struct _finddata_t,_finddata_t主要用来存储各种文件的信息。 struct _finddata64i32_t { unsigned attrib; ...
分类:编程语言   时间:2020-08-21 16:43:25    阅读次数:156
MFC中记录用户对列表控件(或列表视图)列宽的调整
声明成员变量 class CMyCtrl/CMyView : public CListCtrl/CListView { ... public: CMyCtrl/CMyView(); // 构造函数 protected: const int m_nMinWidth = 80; // 最小列宽(如果不需 ...
分类:编程语言   时间:2020-08-20 18:56:44    阅读次数:64
hdu6625 three arrays 01字典树
题意:有两个数组a和b,可以随意调换数组中的元素的顺序,令 c[ i ] = a[ i ] ^ b[ i ],使c的字典序最小。 思路:每个数按二进制从高位到低位看作一个字符串,对a和b数组分别建一棵01字典树,并记录每个结点出现的次数。然后同时遍历这两棵字典树,优先走当前位相同的(0和0,1和1) ...
分类:其他好文   时间:2020-08-20 18:46:24    阅读次数:57
寒武纪二面:
2020.08.05 1、多线程 2、IPC、共享内存 3、bind 4、合并n个有序链表 (力扣原题 使用最小堆会快一些) #include <queue> using namespace std; struct ListNode { int val; ListNode* next; ListNo ...
分类:其他好文   时间:2020-08-20 18:20:10    阅读次数:118
用循环链表实现约瑟夫环
约瑟夫问题: #include <stdio.h> #include <stdlib.h> typedef struct node{ int data; struct node * next; }node; //创建一个有n个结点的循环链表 node * initLink(int n){ node ...
分类:其他好文   时间:2020-08-20 18:19:30    阅读次数:49
c++关于使用new的纠正
自己之前纠正过这个问题,但还是忘了。今天再拿出来。 今天主要总结关于使用 c++ 标准中的 new 关键字。 【结论】 A、处理new可能抛出的异常 B、针对new使用std::nothrow不抛出异常 1、错误示范 下面一段代码,使用new向堆申请空间,再释放的过程 1 char *pbuf = ...
分类:编程语言   时间:2020-08-20 18:16:43    阅读次数:76
【leetcode】平衡二叉树
int height(struct TreeNode* root) { if (root == NULL) { return 0; } else { return fmax(height(root->left), height(root->right)) + 1; } } bool isBalanc ...
分类:其他好文   时间:2020-08-19 19:58:57    阅读次数:65
共24378条   上一页 1 ... 53 54 55 56 57 ... 2438 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!