码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
004、栈的基本操作
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "math.h" 4 5 typedef struct demo 6 { 7 int* base; 8 int* top; 9 int stacksize; 10 }sqstack; 11 1 ...
分类:其他好文   时间:2020-05-23 21:56:01    阅读次数:93
GLUT Tutorials 17:子窗口
博客转自:http://www.lighthouse3d.com/tutorials/glut-tutorial/subwindows/ 创建和销毁子窗口 With GLUT we can define subwindows, i.e. divide the main window in diffe ...
分类:其他好文   时间:2020-05-23 18:29:11    阅读次数:54
Java的每个Thread都希望拥有自己的名称
一. 介绍 平时工作中可能会碰到排查多线程的bug,而在排查的时候,如果线程(单个线程或者是线程池的线程)没有一个比较明确的名称,那么在排查的时候就比较头疼,因为排查问题首先需要找出“问题线程”,如果连“问题线程”都找不到,就很难找出问题原因,本文就针对多线程中涉及到的线程池、线程组、线程名称,介绍 ...
分类:编程语言   时间:2020-05-23 18:21:00    阅读次数:46
单片机C语言#define宏定义多条语句
在单片机编程过程中,有时候需要反复操作多条同相语句,这时候运用#define宏定义多条语句可以大大简化编程内容。 语法规则如下: 1.宏定义单条语句: #define PI 3.14159 // 定义圆周率pi的值 2.宏定义多条语句:中间用逗号或百分号,两头加大括号。#define SendIIC ...
分类:编程语言   时间:2020-05-23 16:45:37    阅读次数:210
5.23 VJ E - Candies and Two Sisters
#include<bits/stdc++.h>#define ll long longusing namespace std;/*题意:A和B两人分n个糖,每人最少一个,且A分得的数量要大于B,只要分奇偶情况输出就行*/int main(){ ll t,n; cin>>t; for(int i=0; ...
分类:其他好文   时间:2020-05-23 13:09:20    阅读次数:51
5.23 VJ D - Kana and Dragon Quest game
#include<bits/stdc++.h>#define ll long longusing namespace std;/*题意:怪物血量为x,可以使用两种技能,分别为x/2+10和x-10,当x<=10时不能使用技能1*/int main(){ int t,x,n,m; cin>>t; fo ...
分类:其他好文   时间:2020-05-23 13:04:49    阅读次数:50
5.23 Vj B - Balanced Array
#include<bits/stdc++.h>#define ll long longusing namespace std;//按照题意可知二分之n为偶数的时候存在这样的数组,按照题意分两部分存入数组即可int main(){ ll t,n; cin>>t; for(int i=0; i<t; i ...
分类:其他好文   时间:2020-05-23 11:26:47    阅读次数:43
uoj82. 【UR #7】水题生成器
题目描述 n define fo(a,b,c) for (a=b; a=c; a ) define ll long long // define file using namespace std; int n,i,j,k,l; ll m,s; int main() { ifdef file freo ...
分类:其他好文   时间:2020-05-23 09:24:59    阅读次数:48
Prefix HDU - 5790
题意: 给出 $n$ 个字符串,$q$ 组查询,每次查询第 $L$ 到第 $R$ 个字符串中有多少个不同的前缀。强制在线。 数据范围:$1≤N≤100000,1≤Q≤100000$,字符串总长最大为 $1e5$。 分析: 用字典树给每种前缀进行编号,最多有 $1e5$ 个前缀。问题即转化为求区间内不 ...
分类:其他好文   时间:2020-05-23 00:34:36    阅读次数:49
STM32的按键方法
按键可以用按键扫描的方法和外部中断的方法。 外部中断看前面,个人推荐使用外部中断更好。 其余情况可以用按键扫描,这里只讲按键扫描的方法。 先在main.h中定义按键名称 #define KEY0 HAL_GPIO_ReadPin(GPIOC,GPIO_PIN_5) //KEY0按键PC5 #defi ...
分类:其他好文   时间:2020-05-22 09:35:56    阅读次数:124
25272条   上一页 1 ... 87 88 89 90 91 ... 2528 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!