码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
C语言数据结构-折半查找
#include<stdio.h> #include<stdlib.h> #define MAX_SIZE 101 #define SWAP(x, y, t)((t) = (x), (x) = (y), (y) = t) #define COMPARE(x, y)((x) < (y)) ? -1 : ...
分类:编程语言   时间:2020-06-30 09:12:57    阅读次数:83
递归和全排列
#include<bits/stdc++.h> using namespace std; #define Swap(a,b) {int temp=a;a=b;b=temp;} int data[]={1,2,3,4,5,6,7,8,9,10}; int num=0; int Perm(int beg ...
分类:其他好文   时间:2020-06-29 11:34:30    阅读次数:45
C语言数据结构-队列Queue
#ifndef __LINKQUEUE_H__ #define __LINKQUEUE_H__ #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLF -1 #define OVERFLOW -2 ...
分类:编程语言   时间:2020-06-29 00:47:58    阅读次数:119
策略模式
名称: 策略模式(Strategy Pattern) 问题: The intent of the Strategy Pattern is to define a family of algorithms, encapsulate each algorithm, and make them inter ...
分类:其他好文   时间:2020-06-28 20:11:35    阅读次数:55
使用 GetDeviceCaps 函数获取视频显示器设备环境信息
#include <windows.h> #define NUMLINES ((int)(sizeof devcaps / sizeof devcaps[0])) struct { int iIndex; TCHAR* szLabel; TCHAR* szDesc; } devcaps[] = { ...
分类:其他好文   时间:2020-06-28 18:21:44    阅读次数:85
from absl import app, flags, logging
test_absl.py : from absl import app, flags, logging import sys #设置参数,第一个是参数名称,第二个是参数默认值,无默认值可取None,第三个是参数解释 flags.DEFINE_string('str_1', 'hello', 'Inp ...
分类:移动开发   时间:2020-06-28 13:12:15    阅读次数:77
树——存储结构
树——存储结构 双亲表示法(顺序存储) 双亲表示法:每个节点中保存指向双亲的“指针” #define MAX_TREE_SIZE 100 //树中最多的结点数 typedef struct{ //树的结点定义 ElemType data; //数据元素 int parent; //双亲位置域 }PT ...
分类:其他好文   时间:2020-06-28 13:06:22    阅读次数:76
【转】Makefile中的= ?= += =的区别
在Makefile中我们经常看到 = := ?= +=这几个赋值运算符,那么他们有什么区别呢?我们来做个简单的实验 新建一个Makefile,内容为:ifdef DEFINE_VRE VRE = “Hello World!”elseendif ifeq ($(OPT),define) VRE ?= ...
分类:其他好文   时间:2020-06-28 12:58:59    阅读次数:47
C语言数据结构-栈stack
栈stack - 是限定在表尾进行插入或删除的线性表 #ifndef __STACK_H__ #define __STACK_H__ #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLF -1 # ...
分类:编程语言   时间:2020-06-28 09:31:24    阅读次数:81
scrapy 使用postgres异步存储代码
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scra ...
分类:其他好文   时间:2020-06-28 09:23:45    阅读次数:56
25272条   上一页 1 ... 66 67 68 69 70 ... 2528 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!