码迷,mamicode.com
首页 >  
搜索关键字:struct dpif_class    ( 18974个结果
线段相交模板
const double eps=1e-8; struct point{ double x,y; void input(){ scanf("%lf%lf",&x,&y); } }; struct segment{ point a,b; void input(){ a.input(); b.input ...
分类:其他好文   时间:2020-05-20 14:38:48    阅读次数:45
java容器
一、概述 容器主要包括 Collection 和 Map 两种: Collection 存储着对象的集合 Map 存储着键值对(两个对象)的映射表。 Collection: Map: 1. Set TreeSet: 基于 红黑树 实现,支持有序性操作,例如根据一个范围查找元素的操作。但是查找效率不如 ...
分类:编程语言   时间:2020-05-20 14:28:09    阅读次数:57
list链表
链表数据结构的定义很简单(节选自[include/linux/list.h],以下所有代码,除非加以说明,其余均取自该文件): struct list_head { struct list_head *next, *prev; }; list_head结构包含两个指向list_head结构的指针pr ...
分类:其他好文   时间:2020-05-20 14:16:32    阅读次数:47
LeetCode 2. 两数相加 Add Two Numbers
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solu ...
分类:其他好文   时间:2020-05-20 12:40:43    阅读次数:58
数据结构-动态顺序表-C语言实现
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <ctype.h> 4 #include <stdbool.h> 5 #define MAXSIZE 7 6 typedef int ElemType; 7 typedef struct Or ...
分类:编程语言   时间:2020-05-19 14:32:17    阅读次数:55
链表的增删查改---增
#include <iostream>#include <string.h>using namespace std; struct student{ int age; char name[10]; char sex[5]; student *next; }; //链表的增删查改 增; int mai ...
分类:其他好文   时间:2020-05-19 12:33:02    阅读次数:51
矩阵幂求解骨牌覆盖数(SOJ 3021)
SOJ 3021: Quad Tiling 题意:给出$4\times N$的矩形以及尺寸为$2\times 1$的骨牌,求解该矩形能被骨牌覆盖的种数。 分析:起初我自己一直尝试推导出一个递推式,但是一直没有成功。后来看了网上别人给的递推式:$f(n)=f(n-1)+5*f(n-2)+f(n-3)- ...
分类:其他好文   时间:2020-05-18 22:55:54    阅读次数:73
[Go] golang http下返回json数据
需求返回json格式编码的结构体 , 需要返回content-type 返回不同的响应码 结构体的定义 ,因为可导出的结构体 ,必须大写,如果要小写 ,就得加这个别名 type JsonResult struct{ Code int `json:"code"` Msg string `json:"m ...
分类:Web程序   时间:2020-05-18 20:48:49    阅读次数:206
c++高精度
#include<stdio.h> #include<string.h> #define yw 10000 //yw表示压4位数 struct node{ int s[10001];//s存储数据 int len,zf;//len存储位数,zf存储正负(1为正-1为负) }; char dr[100 ...
分类:编程语言   时间:2020-05-18 20:34:37    阅读次数:55
二叉树
#define _CRT_SECURE_NO_WARNINGS #include <iostream>#include <stdlib.h>#include <malloc.h>using namespace std;/*BinaryTree结构体定义*/typedef struct BinaryT ...
分类:其他好文   时间:2020-05-18 01:04:46    阅读次数:73
18974条   上一页 1 ... 91 92 93 94 95 ... 1898 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!