码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
Meta-Learning: Learning to Learn Fast
Define the Meta-Learning Problem A Simple View Training in the Same Way as Testing Learner and Meta-Learner Common Approaches Metric-Based Convolution ...
分类:Web程序   时间:2020-03-21 18:17:04    阅读次数:143
linux下静态库和动态库的实现和对比
首先,创建一个文件夹,并在改文件夹下存进如下文件: cal.h #ifndef cal_h #define cal_h int add(int,int); int sub(int,int); int mul(int,int); int div(int,int); int mod(int,int); ...
分类:系统相关   时间:2020-03-21 17:54:05    阅读次数:70
进阶实验6-3.3 天梯地图 (30分)-Dijkstra
解题思路:采用Dijkstra算法,算两次,一次算最短时间,一次算最短路径,另开一数组记录路径 #include <stdio.h> #include <string.h> #define INF 0x3f3f3f3f #define MaxVex 500 typedef struct { int ...
分类:其他好文   时间:2020-03-21 16:37:43    阅读次数:71
inline
这就是一篇凑数量的博客。 其实没想写这一篇,但是上课时提到inline就激发了我的好奇心。inline是什么?在c++中inline关键字用来定义一个类的内联函数,引入它的主要原因是用它替代C中表达式形式的宏定义。 取代这种形式的原因如下: 1. C中使用define这种形式宏定义的原因是因为,C语 ...
分类:其他好文   时间:2020-03-21 16:34:03    阅读次数:64
冒泡排序,插入排序和选择排序
#include<iostream> using namespace std; #define ElemType int const int Maxn=105; void InsertSort(ElemType A[],int n){ int i,j; for(i=2;i<=n;i++){ if(A ...
分类:编程语言   时间:2020-03-21 16:31:04    阅读次数:63
四分树- UVa 297
1 #include <iostream> 2 #define black 'f' 3 #define white 'e' 4 #define grey 'p' 5 using namespace std; 6 struct node{ 7 char type; 8 node* upper_r; 9 ...
分类:其他好文   时间:2020-03-21 16:25:21    阅读次数:64
开闭原则
在实际代码中,为提高代码的可复用性(后期不用动),可维护性(后期不用改源代码),通过一个抽象类来定义,借助虚函数来定义不同的继承对象。 #define _CRT_SECURE_NO_WARNINGS #include <iostream> using namespace std; //抽象类 cla ...
分类:其他好文   时间:2020-03-21 16:22:03    阅读次数:60
Linux下库的实现以及比较
首先,先创建一个文件夹,我创建的文件夹是Study,以下文件均在此文件夹下。 以下代码是对随机产生的20个数进行排序,仅用于举例 sort.h 1 #ifndef sort_h 2 #define sort_h 3 #include<stdio.h> 4 #include<stdlib.h> 5 # ...
分类:系统相关   时间:2020-03-21 13:08:11    阅读次数:70
为什么有些寄存器值的更新会延迟一个时钟周期变化
module counter( input clk, input rst_n, output reg[7:0] data_out ); //reg define reg [3:0] cnt; //假设计数器每计数十次,溢满一次 reg [2:0] lsm_cnt; //计数器每溢满一次,lsm_cn ...
分类:其他好文   时间:2020-03-21 12:52:54    阅读次数:151
进阶实验6-3.2 社交网络图中结点的“重要性”计算 (30分)-dijkstra算法
解题思路:(邻接矩阵存储) 用dijkstra算法依次求出每个结点到其余结点的最短距离 #include <stdio.h> #include <string.h> #define INF 0x3f3f3f3f #define MaxVex 1000+10 int G[MaxVex][MaxVex] ...
分类:编程语言   时间:2020-03-20 17:20:46    阅读次数:119
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!