码迷,mamicode.com
首页 >  
搜索关键字:struct tm    ( 20030个结果
参数里时间格式的转换
https://blog.csdn.net/holdlg/article/details/62436537 time.time() 得到浮点型的时间戳 time.localtime() 都得到 struct_time time.strftime() 可以这么理解 “string format tim ...
分类:其他好文   时间:2021-03-06 14:58:28    阅读次数:0
golang的责任链与链式调用
先给出接口 type Handler interface { do() SetNext(handler Handler) Handler Run() } // 用以复用 type Next struct { nextHandler Handler } func (n *Next) SetNext(h ...
分类:其他好文   时间:2021-03-06 14:47:05    阅读次数:0
题解[LuoguP1707 刷题比赛]
题目描述 Link 给定$n,P,p,q,r,t,u,v,w,x,y,z$ ,三个递推式: \(a_{k+2}=pa_{k+1}+qa_{k}+b_{k+1}+c_{k+1}+rk^2+tk+1\) \(b_{k+2}=ub_{k+1}+vb_{k}+a_{k+1}+c_{k+1}+w^k\) \( ...
分类:其他好文   时间:2021-03-06 14:41:33    阅读次数:0
2d平面向量计算
PlaneVector.hpp #ifndef PlaneVector_h__ #define PlaneVector_h__ template<typename coordinate_type> struct PlaneVector { coordinate_type x; coordinate_ ...
分类:其他好文   时间:2021-03-04 13:30:28    阅读次数:0
Java循环结构
循环结构 while循环 while是最基本的循环,只要布尔表达式的值为true,循环就会一直执行下去。我们大多数情况是会让循环停止下来的,我们需要一个让表达式失效的方式来结束循环。 while(布尔表达式){ //循环内容} package struct;?public class WhileDe ...
分类:编程语言   时间:2021-03-04 13:29:17    阅读次数:0
ipv6
static int tcp_open_socket(unsigned short port, const char *bindaddr, const char *ifname){ int fd = -1, n, af, opt; struct sockaddr_in si; struct sock ...
分类:其他好文   时间:2021-03-03 12:28:42    阅读次数:0
019 break 和 continue
break 和 continue break在任何循环语句的主体部分,均可以用于控制循环的流程。用于强行退出循环,不执行循环中剩余的语句。 也可以用于switch语句中 package com.kuang.struct; public class BreakDemo01 { public stati ...
分类:其他好文   时间:2021-03-03 12:26:35    阅读次数:0
std::map和std::mulitmap的简单实现
std::map的实现 template <class Pair> struct Select1st_ { const typename Pair::first_type& operator()(const Pair& x) const { return x.first; } }; template ...
分类:其他好文   时间:2021-03-01 13:20:12    阅读次数:0
C/C++结构体
结构变量的声明和初始化 #include <cstdio> int main() { struct { int age; int height; } x, y = {29, 180}; // 结构的成员在内存中按照声明的顺序存储 x.age = 30; x.height = 170; return ...
分类:编程语言   时间:2021-02-27 13:32:58    阅读次数:0
ES6 Super关键字
//super关键字 //1、作为函数调用,调用父类的构造函数. //ES6中要求,在字类构造函数中,必须执行一个super函数 //super指向父类的原型不是父类class class A { constructor(x) { this.x = x } } class B extends A { ...
分类:其他好文   时间:2021-02-27 13:27:26    阅读次数:0
20030条   上一页 1 ... 19 20 21 22 23 ... 2003 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!