码迷,mamicode.com
首页 >  
搜索关键字:bool    ( 16475个结果
HwH的线段树2(指针版)
#include<cstdio> const int maxn=100005; int p; typedef long long int ll; int n,q,m; ll a[maxn]; struct Node { ll tag1,tag2,v; int l,r; Node *ls,*rs; i ...
分类:其他好文   时间:2020-07-01 16:01:57    阅读次数:53
哈希算法
1 #include<iostream> 2 using namespace std; 3 4 const int maxn=1002; 5 int arr[maxn]={0}; 6 7 //判断是否是质数 8 bool is_pri(int n){ 9 for(int i=n-1;i>=2;i-- ...
分类:编程语言   时间:2020-07-01 15:49:29    阅读次数:54
C# 数字 转换 大写汉字
调用方法 double m; try { m = double.Parse(GetCurrentColumnValue("总金额").ToString()); Money money = new Money(m); label3.Text ="金额(大写): "+ money.Convert(); ...
分类:Windows程序   时间:2020-07-01 12:42:31    阅读次数:71
力扣(LeetCode)试题20-有效的括号 C++代码
可能是代码不规范,在力扣端编译环境下出错:Line 35: Char 10: runtime error: load of value 64, which is not a valid value for type 'bool' (solution.cpp)。 在VS环境下没有问题。先搁置问题,以后 ...
分类:编程语言   时间:2020-07-01 12:29:34    阅读次数:375
python---数据类型(int,float,bool,complex),容器类型的基本认识
# ###数据类型:Number(int,float,bool,complex) 1.int 整型 (正整数 0 负整数) intvar = 1111 print(intvar) type 获取值的类型 res = type(intvar)print(res)id 获取一个值的地址res = id( ...
分类:编程语言   时间:2020-06-30 23:01:48    阅读次数:109
009 set
set 集合 set 集合: 作用:集合之间的交差并补; 特点:无序,自动去重; 对于set 的值是 可哈希的数值,例如:int float bool complex str tuple 定义集合 setvar = set() #空集合setvar = {'北京','武汉','内蒙古'}print( ...
分类:其他好文   时间:2020-06-30 20:29:51    阅读次数:46
WIN32 远程注入 CreateRemoteThread
// remote06.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "windows.h" BOOL func(DWORD ProcessID,char* Dll ...
分类:Windows程序   时间:2020-06-30 19:03:52    阅读次数:75
图的遍历BFS
图的遍历BFS 广度优先遍历 深度优先遍历 可以进行标记 树的广度优先遍历,我们用了辅助的队列 bool visited[MAX_VERTEX_NUM] //访问标记数组 //广度优先遍历 void BFS(Graph G,int v){ //从顶点v出发,广度优先遍历图G visit(v); // ...
分类:其他好文   时间:2020-06-30 14:51:53    阅读次数:64
最短路径——BFS算法
最短路径——BFS算法 单源最短路径问题 每对顶点间的最短路径 BFS求无权图的单源最短路径 bool visited[MAX_VERTEX_NUM]; //访问标记数组 //广度优先遍历 void BFS(Graph G,int v){ //从定点出发,广度优先遍历图G visit(v); //访 ...
分类:编程语言   时间:2020-06-30 14:37:18    阅读次数:82
前端常用的工具类
/* 动态生成A-Z */function getEN(){ var arr = []; //定义数组 for(var i = 65; i < 91; i++){ arr.push(String.fromCharCode(i)); //ASKLL值对应的字符 } return arr.join(', ...
分类:其他好文   时间:2020-06-30 14:24:20    阅读次数:43
16475条   上一页 1 ... 52 53 54 55 56 ... 1648 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!