码迷,mamicode.com
首页 >  
搜索关键字:struct ethhdr    ( 18974个结果
单链表的头插法(C语言实现)
#include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct LNode{ int data; struct LNode* next; //next是一个指向结构体类型的指针, LNode* 是一个指针数据类型类似int ...
分类:编程语言   时间:2020-07-19 23:54:49    阅读次数:96
单链表的尾插法(C语言实现)
#include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct LNode{ int data; struct LNode* next; }LNode,*LinkList; LinkList List_TailInsert ...
分类:编程语言   时间:2020-07-19 23:53:50    阅读次数:108
10.Go语言-面向对象简单了解
1.面向对象 1.1匿名字段 package main import "fmt" type Person struct { name string sex string age int } type Student struct { Person id int addr string } func ...
分类:编程语言   时间:2020-07-19 23:44:14    阅读次数:77
11.Go语言-接口
2.接口 接口定义了一个对象的行为规范。 2.1接口 2.1.1接口类型 Go语言中接口是一种类型,一种抽象类型。 interface是一组methods的集合。 2.1.2为什么要用接口 package main import "fmt" type Cat struct{} func (c Cat ...
分类:编程语言   时间:2020-07-19 23:43:38    阅读次数:86
计算几何模板
用了kuangbin大佬的板子 一.二维计算几何模板 1.点 struct Point { double x, y; Point() {} Point(double _x, double _y) { x = _x; y = _y; } void input() { scanf("%lf%lf", & ...
分类:其他好文   时间:2020-07-19 23:32:16    阅读次数:67
树算法(1)
容易忘的树基本操作 以中序与任意其他方法遍历建二叉树 // 中序与后续为例 struct node { int data; node *l, *r; }; // 中序的hash数组 int hashIn[MAX]; vector<int> in(MAX), post(MAX); node *crea ...
分类:编程语言   时间:2020-07-19 18:09:06    阅读次数:109
数据结构C语言实现----出队伍操作
1.创建一个队列时,空队列中队首和队尾相同,但不是NULL,队首后面挂的元素才是NULL 2.打印队列时,对于链队列,不能把指针加一来找到下一个数据,因为链表地址不连续,需要复制一条链表,不断往后遍历来挨个打印链表的数据 3.求队伍的长度也是,不能首尾指针相减,因为地址不连续,所以同样需要复制一条链 ...
分类:编程语言   时间:2020-07-19 18:05:49    阅读次数:71
Python time模块常用函数
在开始之前,首先要说明这几点: 1.在Python中,通常有这几种方式来表示时间:1)时间戳 2)格式化的时间字符串 3)元组(struct_time)共九个元素。由于Python的time模块实现主要调用C库,所以各个平台可能有所不同。2.UTC(Coordinated Universal Tim ...
分类:编程语言   时间:2020-07-19 17:47:28    阅读次数:93
重回OI的第一篇博客
太久没学OI了, 代码都不会写了, 先写一篇BFS练练手, 是我太菜了qwq #include<cstdio> #include<queue> #include<iostream> #include<cstring> using namespace std; struct node{ int x,y ...
分类:其他好文   时间:2020-07-19 16:30:54    阅读次数:69
leetcode-----99. 恢复二叉搜索树
链接:https://leetcode-cn.com/problems/recover-binary-search-tree/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode ...
分类:其他好文   时间:2020-07-19 11:36:41    阅读次数:70
18974条   上一页 1 ... 52 53 54 55 56 ... 1898 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!