码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
2. 内核模块概述
一、linux内核模块1.数据类型:char(8bits)、short int (16bits)、int(32bits)、long int(与CPU的字长一致) 2、内核模块的作用linux kernel Module >设备驱动是以独立的module的形式存在的,设计的驱动需要包含在module内 ...
分类:其他好文   时间:2020-07-26 15:53:48    阅读次数:72
力扣-94-二叉树的中序遍历
题目:传送门 方法一、递归 中序遍历:先遍历左子树,在遍历根节点,最后遍历右子树。比较经典的方法是递归。 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeN ...
分类:其他好文   时间:2020-07-26 15:32:51    阅读次数:67
es6 Calss类
<script type="text/javascript"> // 定了一个类 class Person{ // 定义一个构造方法 constructor(name,age){ console.log('父类构造方法') this.name=name; this.age=age; } // 定义普 ...
分类:其他好文   时间:2020-07-26 15:14:02    阅读次数:50
贪吃蛇 C语言源代码
#include <stdio.h> #include <graphics.h> #include <stdlib.h> #include <dos.h> /*引用的库函数*/ #define LEFT 0x4b00 #define RIGHT 0x4d00 #define DOWN 0x5000 ...
分类:编程语言   时间:2020-07-26 02:05:25    阅读次数:127
面试题28:对称的二叉树
考察二叉树的遍历。判断前序遍历,与新增的前->右->左遍历结果是否一致。 C++版 #include <iostream> #include <algorithm> using namespace std; // 定义二叉树 struct TreeNode{ int val; struct Tree ...
分类:其他好文   时间:2020-07-26 01:57:55    阅读次数:63
面试题25:合并两个排序的链表
考察链表的操作,合并两个有序链表,合并后的链表仍是有序的。 C++版 #include <iostream> #include <algorithm> using namespace std; // 定义链表 struct ListNode{ int val; struct ListNode* ne ...
分类:编程语言   时间:2020-07-26 01:33:46    阅读次数:65
大数模板
struct bign { int len, s[numlen]; bign() { memset(s, 0, sizeof(s)); len = 1; } bign(int num) { *this = num; } bign(const char *num) { *this = num; } b ...
分类:其他好文   时间:2020-07-26 01:31:46    阅读次数:58
事件总线--课件
事件总线 什么是事物 例如:事物 所有看到的一切都是事物,不能看到的也是事物 例如:团队微服务,成员微服务,聚合微服务,网关api,认证中心等等包括类,对象 所有的事件都是事物变化的结果 大家接触事件最早就是在js 或者是c#高级特性。大家对于事件不默认,但是对于事件不是很好理解 什么是事件 事件就 ...
分类:其他好文   时间:2020-07-26 01:25:30    阅读次数:85
「一本通 1.1 例 1」活动安排
题目大意 题目: 大致题意: 给定n个左闭右开的区间,选出尽量多的区间使得这些区间两两不交,求最多能选多少个。 思路解析 按照区间右端点升序排序,依次枚举各个区间,若与上一个被选区间无交集,那么就将这个区间选中。 为什么要用右端点升序呢?因为这样子的话留给后面时间就多了。 程序注释 #include ...
分类:其他好文   时间:2020-07-26 01:23:28    阅读次数:55
6、Operation inconsistent with current state
Operation inconsistent with current state异常解决 找到以下进程,并杀死,便可解决 ...
分类:其他好文   时间:2020-07-26 01:21:44    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!