- 博客(8)
- 资源 (9)
- 问答 (1)
- 收藏
- 关注
原创 栈顺序存储&链式存储
1.栈的顺序存储#include#include#define MAX 20typedef struct SqStack{ int elem[MAX]; int top;//栈顶指针}SqStack;SqStack *Init_SqStack(){ SqStack *S; S = (SqStack *)malloc(sizeof(SqStack)); if (S)
2015-09-25 09:12:20 558
原创 双向链表,链表求A与B差集,链表多项式相加,静态链表
集合A用单链表La表示,集合B用单链表Lb表示,设计算法求A与B两个集合的差,即A-B分析:A-B即属于A而不属于B的元素,对集合A的每个元素x,在集合B中进行查找,如果存在与x相同的元素,删除x在A中的结点。#include#includetypedef struct Lnode{ int data; struct Lnode *next;}Lnode;st
2015-09-23 23:10:13 1254
原创 线性表(顺序存储,链式存储)
#include#include#define MAX 20#define ELEMTP int#define v (*p)struct node{ ELEMTP data; struct node *next;};int n = 0;//计数struct node *create(void)//尾插法建立链表{ struct node *head, *p, *s;
2015-09-18 09:26:42 769
转载 opencv基础mat类详解
译文参考The OpenCV Reference Manual (Release 2.3)August 17 2011Mat类OpenCV c + + n 维稠密数组类class CV_EXPORTS Mat{public:/ / … …很多的方法....../*!包括几位字段:-神奇的签名-连续性标志-深度(Note:应该是位深)-通道数*
2015-09-15 21:57:56 1029
原创 CUDA二维矩阵加法
#include#include#include__global__ void add(int a[][2], int b[][2], int c[][2]){ int i = threadIdx.x + blockIdx.x * blockDim.x; int j = threadIdx.y + blockIdx.y * blockDim.y; if (i < 2 && j < 2
2015-09-14 12:21:42 4154
原创 CUDA基础
/** * Vector addition: C = A + B. * This sample is a very basic sample that implements element by element * vector addition. It is the same as the sample illustrating Chapter 2 * of the programmin
2015-09-11 19:16:35 702
贪吃蛇网络版
2016-09-03
CUDA图像反转代码
2015-09-17
cuda opencv GPU模块的使用出错
2015-07-22
TA创建的收藏夹 TA关注的收藏夹
TA关注的人