码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
class composition
#include<iostream> using namespace std; class Composition{ public: //同时有类内初始值和初始化列表时候,最终值为初始化列表中的 Composition():im(this),m(20){cout<<"Composition ctor ...
分类:其他好文   时间:2020-11-20 12:02:36    阅读次数:10
ACM 实验室2020.11.08天梯赛练习*5
7-2 天梯赛座位分配 (20分) #include <iostream> #include <cmath> using namespace std; int main() { int sets[100][10][10];//i个学校j个队伍第k个人的编号 int n,maxt = -1; int ...
分类:其他好文   时间:2020-11-20 11:55:43    阅读次数:5
c++序列化对象的文件存取
#include<iostream> #include<fstream> using namespace std; //总体思想就是流,和标准输入输出cin/cout很类似 //只是这个流是在文件中发生而不是显示器上 class Person { public: //放个空的构造函数方便创建空对象 ...
分类:编程语言   时间:2020-11-20 11:48:51    阅读次数:6
QFNU-ACM 2020.11.6 Trating
A 输入,第i个人把礼物给了谁,输出,第i个人的礼物是谁给的 #include<bits/stdc++.h> using namespace std; typedef long long ll; #define ture true int main() { int n,flag=0,a[200],b ...
分类:其他好文   时间:2020-11-20 11:48:21    阅读次数:6
0x01 基本算法-位运算 a^b
题目链接:a^b 题目分析: 简单数论,快速幂模板题 代码如下: #include<bits/stdc++.h> using namespace std; #define mm(a,x) memset(a,x,sizeof a) #define mk make_pair #define ll lon ...
分类:编程语言   时间:2020-11-19 13:00:22    阅读次数:21
linux运维、架构之路-k8s部署redis
一、创建命名空间 apiVersion: v1 kind: Namespace metadata: name: dev 二、创建redis配置ConfigMap apiVersion: v1 kind: ConfigMap metadata: namespace: dev name: redis-c ...
分类:系统相关   时间:2020-11-19 12:54:44    阅读次数:14
动态规划-tsp
1 #include <iostream> 2 #include <cstdio> 3 #include <memory.h> 4 using namespace std; 5 const int INF=0x3f3f3f3f,city=4; 6 int main(){ 7 int a[city][ ...
分类:其他好文   时间:2020-11-19 12:53:22    阅读次数:10
常见sqlite3 API的简单使用(5)
防止sql注入 char *sqlite3_mprintf(const char*,...); void sqlite3_free(void*); sqlite3_mprintf 用来代替sprintf 来防止sql注入。 sqlite3_mprintf的内部操作: ?会将%Q,替换成给定的字符串。 ...
分类:数据库   时间:2020-11-19 12:42:05    阅读次数:11
Eratosthenes筛法 快速求素数
Eratosthenes筛法,快速求素数。 时间复杂度 O(nlogn)。 思想 对于每个不超过n的非负整数p,删除2p,3p,4p,......,当处理完所有数后,还没有被删除的就是素数。 代码 #include <iostream> using namespace std; /** * Erat ...
分类:其他好文   时间:2020-11-19 12:19:29    阅读次数:5
蓝桥0817-闰年判断个数
#include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> using namespace std; bool CheckYear(int n) { if(n % 400 == 0) return true; ...
分类:其他好文   时间:2020-11-18 13:24:48    阅读次数:28
41927条   上一页 1 ... 51 52 53 54 55 ... 4193 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!