码迷,mamicode.com
首页 >  
搜索关键字:class struct    ( 200435个结果
Qt系统标准时间格式更改为时间戳
Qt提供了库函数toMSecsSinceEpoch将系统时间更改为时间戳 //将当前系统时间转为时间戳 QDateTime dateTime = QDateTime::currentDateTime(); qint64 epochTime = dateTime.toMSecsSinceEpoch() ...
分类:其他好文   时间:2021-05-24 13:23:47    阅读次数:0
leetcode 232 用栈实现队列
简介 使用队列实现队列哈哈. code class MyQueue { public: queue<int> q; public: /** Initialize your data structure here. */ MyQueue() { } /** Push element x to the ...
分类:其他好文   时间:2021-05-24 13:17:52    阅读次数:0
Pytest-parametrize参数化
对于一些场景需要大量数据来支撑的测试,就可以用到参数化来节省手工测试所花费的时间 pytest参数化需要用到装饰器:parametrize 用户,导入pytest模块之后,在函数上方使用,效果如下: import pytest @pytest.mark.parametrize("id,goodsco ...
分类:其他好文   时间:2021-05-24 13:16:38    阅读次数:0
LeetCode第241场周赛
第一题 5759. 找出所有子集的异或总和再求和 题目链接:5759. 找出所有子集的异或总和再求和 直接爆搜,计算所有可能的子集的异或和curSum,加入到答案ans里 class Solution { private: int ans; int n; public: void dfs(vecto ...
分类:其他好文   时间:2021-05-24 13:12:47    阅读次数:0
java的泛型
泛型 1 泛型存在的目的 类型参数化,模板化编程,简化编程 2 泛型的原理 java的泛型参数在运行时会进行类型擦除,擦除后就是object,编译器也会转成object进行编译 那么为啥使用泛型呢? 更加安全 更好的可读性 3 泛型的使用 最常用的容器类比如List 泛型类 class Pair2< ...
分类:编程语言   时间:2021-05-24 13:12:20    阅读次数:0
leetcode 121 买卖股票的最佳时机
简介 使用感觉类似动态规划的思路进行计算 code class Solution { public: int maxProfit(vector<int>& prices) { int inf = 1e9; int minPrice = inf; int maxProfit = 0; for(auto ...
分类:其他好文   时间:2021-05-24 13:09:51    阅读次数:0
前端面试(蚂蚁金服笔试) - 手写事件总栈 EventBus
最近参加了一次蚂蚁金服的面试,其中有两道笔试题,分别是手写事件总栈和手写模板引擎 手写模板引擎比较复杂,除了需要识别 {{data.name}} 这种基本情况之外, 还要兼顾 {{data.info[1]}}、{{data.others["about"]}} 于是先记录下手写事件总栈,后面再完善手写 ...
分类:其他好文   时间:2021-05-24 13:06:22    阅读次数:0
两阶段终止模式volatile版本
public class Test { public static void main(String[] args) throws InterruptedException { TwoPhaseTermination tpt = new TwoPhaseTermination(); tpt.star ...
分类:其他好文   时间:2021-05-24 13:06:08    阅读次数:0
JVM_开篇_JVM是什么
JAVA最初流行的原因 强大的类库 自动的垃圾处理 一处编译,处处运行 动态的内存分配和自动垃圾回收 运行JAVA程序 我们第一次接触Java的时候(Hello World),回忆一下具体的步骤,如下: 编写Java程序。 通过javac编译.class文件。 通过java命令运行.class文件。 ...
分类:其他好文   时间:2021-05-24 13:05:31    阅读次数:0
uniapp自定义样式折叠面板,基于vue的简单折叠面板的实现
<template> <view class="houssel"> <view class="padd23"> <view class="housemsg"> <view class="detail bgwhite"> <view class="PingFangSCBold title">待缴费明细 ...
分类:移动开发   时间:2021-05-24 13:04:11    阅读次数:0
200435条   上一页 1 ... 90 91 92 93 94 ... 20044 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!