码迷,mamicode.com
首页 >  
搜索关键字:const    ( 26295个结果
类中pthread_create()的线程入口函数
在类成员函数中如何调用pthread_create()呢? #incldue <pthread.h> int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), v ...
分类:编程语言   时间:2021-03-16 11:47:13    阅读次数:0
高精度模板
class BigInt{ public: vector<int> a; BigInt operator+(const BigInt& b) { BigInt r; int s=max(a.size(),b.a.size()); for(int i=0;i<s;i++) { r.a.push_bac ...
分类:其他好文   时间:2021-03-16 11:45:03    阅读次数:0
Northern Eurasia Finals Online 2020 L - Lookup Performance
处理了一年的边界问题 #include <bits/stdc++.h> using namespace std; const int N = 2e5 + 10; #define fi first #define se second #define sz(v) ((int)(v).size()) #d ...
分类:其他好文   时间:2021-03-15 11:18:36    阅读次数:0
LRU代码实现
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> PII; #define ls l,mid,rt<<1 #define rs mid+1,r,rt<<1|1 const ...
分类:其他好文   时间:2021-03-15 11:08:22    阅读次数:0
日期样式常量及用法
/// <summary> /// 日期格式 2019-04 /// </summary> public const string DATE_MONTH_FORMAT = "yyyy-MM"; /// <summary> /// 日期格式 2019-04-25 /// </summary> publ ...
分类:其他好文   时间:2021-03-15 10:39:21    阅读次数:0
Vue进阶
前端更新迭代太快,特此记录学习中遇到的一些知识点 知识点也特别多,最近又在使用vue开发项目,在项目中成长,感觉代码是真的菜,后面需要重新优化 一 export const sum=12 import {sum} from xxx alert(sum) 二 const sum=12 export s ...
分类:其他好文   时间:2021-03-11 19:54:35    阅读次数:0
所谓“编译器以引用对象的类型做为auto的类型”自测代码
class CTestA { public: CTestA(){ std::cout<<"CTestA(){"<<std::endl; } CTestA(const CTestA &){ std::cout<<"CTestA(const CTestA &){"<<std::endl; } }; cl ...
分类:其他好文   时间:2021-03-11 14:17:16    阅读次数:0
vue自定义指令实现按钮级权限
1、创建指令文件bthPermission.js,编写自定义指令: import Vue from 'vue'; import api from "api"; /**权限指令**/ const has = Vue.directive('has', { bind: async function (el ...
分类:其他好文   时间:2021-03-10 13:37:17    阅读次数:0
java的注解与反射
什么是注解 Annotation的作用 不是程序本身,可以对程序作出解释 可以被其他程序(比如:编辑器等)读取 Annotation的格式 注解是以@注释名在代码中存在的,还可以添加一些参数值,例如:@SuppressWarnings(value="unchecked") Annotation在哪里 ...
分类:编程语言   时间:2021-03-10 13:34:57    阅读次数:0
pipioj 1026: a+b问题(简单模拟)
http://www.pipioj.online/problem.php?id=1026 1 #define IO std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); 2 #define bug(x) cout<<#x<<" is "<<x<<e ...
分类:其他好文   时间:2021-03-10 13:26:07    阅读次数:0
26295条   上一页 1 ... 32 33 34 35 36 ... 2630 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!