码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
[20-05-06][Thinking in Java 12]Java Interfaces 2 - Interface
1 package test_3_1; 2 3 public enum Note { 4 5 MIDDLE_C, C_SHARP, B_FLAT; 6 } 1 package test_3_1; 2 3 interface Instrument { 4 5 // 自动static final 6 i ...
分类:编程语言   时间:2020-05-06 19:34:54    阅读次数:71
[PAT] A1025 PAT Ranking
tips 1 关注排名的实现代码。 2 熟练sort的使用。 3 熟练vector的使用。 插入用 题目大意 有n个考场,每个考场有若干数量的考生。现在给出各个考场中考生的准考证号和分数,要求将所有考生按分数从高到低排序,并按顺序输出所有考生的准考证号、排名、考场号、考场内排名。 "原题链接" 思路 ...
分类:其他好文   时间:2020-05-06 18:11:30    阅读次数:54
GO语言结构体
什么是结构体 结构体是用户定义的类型,表示若干个字段(Field)的集合。 结构体的声明 例如声明一个人, 有年龄age, 身高height, 体重weight, 可以将这三个属性组合在一起 type People struct { age int weight int height int } 上 ...
分类:编程语言   时间:2020-05-06 17:59:18    阅读次数:63
switchdev(二)
void br_set_state(struct net_bridge_port *p, unsigned int state) { struct switchdev_attr attr = { .orig_dev = p->dev, .id = SWITCHDEV_ATTR_ID_PORT_STP ...
分类:其他好文   时间:2020-05-06 13:57:10    阅读次数:64
easy -heap
源码 include include include include struct data { char name[64]; }; struct fp { int ( fp)(); }; void winner() { printf("level passed\n"); } void nowinn ...
分类:其他好文   时间:2020-05-06 13:38:27    阅读次数:61
Redis 字典实现
4.1 字典数据结构 typedef struct dict{ //类型特定函数 dictType *type; //私有数据 void *privateata; //哈希表 dictht ht[2]; //rehash 索引,rehash未进行时,值为-1 int rehashidx;}dict; ...
分类:其他好文   时间:2020-05-06 12:12:34    阅读次数:56
99. 恢复二叉搜索树
1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), ...
分类:其他好文   时间:2020-05-06 11:59:27    阅读次数:66
luogu CF708C Centroids 换根dp好题
```//以u为根节点//找u的最大子树 中的最大分支//直接连到u上//看看能不能满足条件#include #include #include #include using namespace std;const int N = 400010;struct Node{ int fi, se; vo... ...
分类:其他好文   时间:2020-05-06 09:12:09    阅读次数:59
WPF ObjectDataProvider
原文:WPF ObjectDataProvider 这个ObjectDataProvider东西真的是个神奇的存在。 等同于反射。 只不过是写在xaml中。 例如说我要把colors中所有的颜色列举出来。 普通方法: //CB是combobox this.CB.ItemsSource = typeo... ...
分类:Windows程序   时间:2020-05-06 01:15:53    阅读次数:78
java学习
java学习资料
分类:编程语言   时间:2020-05-05 21:57:01    阅读次数:69
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!