码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
GORM如何获取查询对象的属性
package main import ( "fmt" "gorm.io/driver/mysql" "gorm.io/gorm" "time" ) type User struct { ID int Name string CreatedTime time.Time } func main() { ...
分类:其他好文   时间:2021-06-04 19:06:12    阅读次数:0
UVa 10382 Watering Grass (贪心 区间覆盖)
利用几何关系转化以后,变成经典的区间覆盖问题 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 10010; const double eps = 1e-11; int n, L, ...
分类:其他好文   时间:2021-06-03 17:39:32    阅读次数:0
【数学】模运算类
const int MOD = 1e9 + 7; struct ModularIntegers { int num; template <typename T> ModularIntegers(const T& x) { if(x >= 0 && x < MOD) num = x; else { n ...
分类:其他好文   时间:2021-06-02 20:32:48    阅读次数:0
迭代器切片操作实现
一、可迭代对象基于islice方法实现切片操作 二、islice实现实例: print(list(islice(range(1, 10), 2, 7, 2))) 三、自定义切片方法实现实例: def my_islice(iterable, start, end, step=1): tmp = 0 f ...
分类:其他好文   时间:2021-06-02 19:40:35    阅读次数:0
09 spark连接mysql数据库
1. 安装启动检查Mysql服务。##netstat -tunlp (3306) cd /usr/local/hive/lib ls mysql* cp mysql-connector-java-5.1.40-bin.jar /usr/local/spark/jars/ cd /usr/local/ ...
分类:数据库   时间:2021-06-02 19:00:44    阅读次数:0
(C#)泛型约束
1.new() 约束表示T类型只能接受一个无参数构造函数的new T()。 2.struct值类型约束。 3.class引用类型约束。 4.自定义类型约束。 值类型:struct/int/double/bool/枚举。 引用类型:数组/类/接口/委托/object/字符串。 不论有多少约束,new( ...
分类:Windows程序   时间:2021-06-02 18:43:30    阅读次数:0
OC基础:重温weak
###一、ISA结构 struct objc_object { private: isa_t isa; }; union isa_t { Class cls; uintptr_t bits; #if defined(ISA_BITFIELD) // ISA_BITFIELD意为 isa位域 stru ...
分类:其他好文   时间:2021-06-02 18:18:32    阅读次数:0
redis 》List存储结构
redis的List存储结构:一个链表加上压缩列表实现的 redis c语言源码双向循环列表# define QL_FILL_BITS 16# define QL_COMP_BITS 16# define QL_BM_BITS 4 /typedef struct quicklist { quickl ...
分类:其他好文   时间:2021-06-02 18:11:23    阅读次数:0
获得对象属性特征
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>sss</ti ...
分类:其他好文   时间:2021-06-02 17:41:38    阅读次数:0
dik
#include<bits/stdc++.h> using namespace std; const int N = 200000,Inf=0x7fffff; struct edge{ int u,v,w; edge(int a,int b,int c){ u=a,v=b,w=c; } }; vec ...
分类:其他好文   时间:2021-06-02 17:40:23    阅读次数:0
22969条   上一页 1 ... 8 9 10 11 12 ... 2297 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!