码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
函数1
函数 函数是什么? 定义:函数是指将一组语句的集合通过一个名字(函数名)封装起来,要想执行这个函数,只需调其函数名即可 特性: 1.减少重复代码 2.使程序变的可扩展 3.使程序变得易维护 while True: if cpu利用率 > 90%: #发送邮件提醒 连接邮箱服务器 发送邮件 关闭连接 ...
分类:其他好文   时间:2020-06-21 19:27:57    阅读次数:68
数组异或操作
#define N 1000int xorOperation(int n, int start){ int i; if(n<=1) { return start; } int num[N]; for(i=0;i<n;i++) { num[i]=start+2*i; } int b=num[0]^nu ...
分类:编程语言   时间:2020-06-21 14:08:51    阅读次数:76
mysql数据库报错
环境LNMP php 7.3 mysql 5.6 报错 SQLSTATE[HY000]: General error: 1128 Function 'ngram' is not defined (SQL: CREATE FULLTEXT INDEX content ON `testposts` (` ...
分类:数据库   时间:2020-06-21 13:40:44    阅读次数:75
模拟磁盘调度算法 c++
测试结果 流程图 代码实现: #include<stdio.h> #include <math.h> #define INF 999999 typedef struct { int pid;//磁道号 bool time;//计数器 //int *element;//线性表的起始地址 }SeqLis ...
分类:编程语言   时间:2020-06-21 12:08:46    阅读次数:70
顺序表的插入与删除
1.顺序表的插入 数组的长度用引用型 #include<iostream> using namespace std; #define MaxSize 50 int inserElem(int a[],int &length,int p,int value){ if(p<0 || p>length | ...
分类:其他好文   时间:2020-06-21 09:55:39    阅读次数:50
noip2018自测报告
昨天和今天测了一下前年noip tg的题 100+80+20+60+45+0=305pts 应该是大众分了。。刚好压前年我省1=线。。 我还是太弱了/kk 提交的代码: D1T1: #include<bits/stdc++.h> #define ll long long using namespac ...
分类:其他好文   时间:2020-06-20 19:11:30    阅读次数:55
luogu P2765 魔术球问题 网络流24 最小路径问题
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #define N 500000 using namespace std; int n,m,S,T,tmp1,tmp2,tot; int idx,hea ...
分类:其他好文   时间:2020-06-20 18:52:12    阅读次数:51
树的直径
定义 我们将一棵树T = ( V,E )的直径定义为maxδ ( u,v ) ( u,v ∈ V ),也就是说,树中所有最短路径距离的最大值即为树的直径。 寻找方法 两次bfs 方法:先从任意一点P出发,找离它最远的点Q,再从点Q出发,找离它最远的点W,W到Q的距离就是是的直径 证明如下: ①若P已 ...
分类:其他好文   时间:2020-06-20 16:43:04    阅读次数:81
关于移动端的前端小结
<meta>标签 开发移动端项目需要使用视口标签<meta>来禁止缩放,页面显示时文字就不会变小了: 这是移动端屏幕适配问题解决过程中会遇到的一环(布局便是另一环): 1、谷歌浏览器使用手机模式调试时,手机型号旁边是独立像素,各种手机屏幕大小看起来差不多,但像素分辨率区别很大,因为使用设备独立像素作 ...
分类:移动开发   时间:2020-06-20 16:07:53    阅读次数:82
luogu P3254 圆桌问题 网络流24
#include <iostream> #include <cstdio> #include <cstring> #define N 100010 using namespace std; int n,m,S,T,tmp1,tmp2,tot; int idx,head[N],cur[N],q[N], ...
分类:其他好文   时间:2020-06-20 13:51:16    阅读次数:33
25272条   上一页 1 ... 71 72 73 74 75 ... 2528 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!