码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
Linux 内核 链表 的简单模拟
第零章:扯扯淡 出一个有意思的题目:用一个宏定义FIND求一个结构体struct里某个变量相对struc的编移量,如struct student{ int a; //FIND(struct student,a) 等于0 char b; //FIND(struct st...
分类:系统相关   时间:2014-06-11 10:23:14    阅读次数:361
C++实现简单的单链表
下面实现的是一个简单的单链表功能不多,学习使用#pragma once#include using namespace std;class ListEx{private: struct Node { Node* next; int data; N...
分类:编程语言   时间:2014-06-11 10:06:26    阅读次数:246
图的深度遍历和广度遍历
#include#include#define MAX_VERTEX_NUM 10typedef char VertexType;typedef struct ArcNode//边 { int adjvex; struct ArcNode *nextarc; in...
分类:其他好文   时间:2014-06-11 09:03:34    阅读次数:277
排序算法 (-)
以下算法都编译通过,具体原理相信大家都懂,直接上代码。插入排序1.直接插入排序typedef int eleType;typedef struct{ eleType key[MAXSIZE], int length;}listSeq; void InsertSort(listSeq ...
分类:其他好文   时间:2014-06-10 00:02:56    阅读次数:306
enum与字符串转换
public enum CacheControlMode { DisableCache, UseExpires } string s = CacheControlMode.UseExpires.ToString(); CacheContro...
分类:其他好文   时间:2014-06-08 07:19:44    阅读次数:200
04 对象与类
类是构建对象的模板或蓝图.所以, 通常是, 一个TotalTest类含有main方法, 用来启动程序 等等, 剩下的其他类, 就好比C的 struct+method() 封装在一起.类之间的关系:依赖:( Uses-a), 应该尽量减少类之间的相互依赖, 如果类A不知道B的存在, 它就不会关心B的任...
分类:其他好文   时间:2014-06-08 02:08:15    阅读次数:276
g_thread_init
NAMEg_thread_init- 初始化线程系统SYNOPSIS#include //in gthread.h void g_thread_init (GThreadFunctions *vtable);Date Structuretypedef struct _GThreadFunction....
分类:其他好文   时间:2014-06-08 00:39:36    阅读次数:562
Linux 内核 链表 的简单模拟(2)
接上一篇Linux 内核 链表 的简单模拟(1) 第五章:Linux内核链表的遍历/*** list_for_each - iterate over a list* @pos: the &struct list_head to use as a loop cursor.* @...
分类:系统相关   时间:2014-06-07 22:09:58    阅读次数:451
struct msghdr和struct cmsghdr
struct msghdr和struct cmsghdrhttp://blog.csdn.net/wsllq334/article/details/6977039structdescriptorcredentialsfilesocket数据结构 理解struct msghdr当我第一次看到他时,他看...
分类:其他好文   时间:2014-06-07 22:02:02    阅读次数:1731
数据结构中线性表的基本操作-合并两个线性表-依照元素升序排列
#include#include#define LIST_INIT_SIZE 10/*线性表初始长度*/#define LIST_CREATENT 2/*每次的增量*/typedef int ElemType;using namespace std;typedef struct SqList/*线性...
分类:其他好文   时间:2014-06-07 21:01:21    阅读次数:322
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!