开发学院软件开发数据结构 C语言实现一个简单的单向链表list 阅读

C语言实现一个简单的单向链表list

 2010-04-30 12:03:48 来源:WEB开发网   
核心提示:公共头文件:/* unistd.h 2008-09-15 Last created by cheungmine. All rights reserved by cheungmine.*/#ifndef UNISTD_H__#define UNISTD_H__/* Standard C header files incl

公共头文件:

/* unistd.h
   2008-09-15 Last created by cheungmine.
   All rights reserved by cheungmine.
*/
#ifndef UNISTD_H__
#define UNISTD_H__

/* Standard C header files included */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

/*============================================================================*/

typedef unsigned char uchar, byte, BYTE;

typedef unsigned short uint16, word_t, ushort;

typedef unsigned __int32 uint, uint32, dword_t, size_t;

typedef unsigned long    ulong;

typedef __int16 int16;
typedef __int32 int32;
typedef __int64 int64, longlong;

typedef    long    lresult;

typedef unsigned __int64 uint64, qword_t, ulonglong;

#ifndef BOOL
    typedef int     BOOL;
    #define TRUE  1
    #define FALSE 0
#endif

#ifndef RESULT
    #define RESULT        lresult
    #define _SUCCESS    0
    #define _ERROR        -1
#endif

#ifndef IN
#define IN
#endif

#ifndef OUT
#define OUT
#endif

#ifndef INOUT
#define INOUT
#endif

#ifndef OPTIONAL
#define OPTIONAL
#endif

#define SIZE_BYTE    1
#define SIZE_ACHAR    1
#define SIZE_WCHAR    2
#define SIZE_SHORT    2
#define SIZE_INT    4
#define SIZE_LONG    4
#define SIZE_FLT    4
#define SIZE_DBL    8
#define SIZE_WORD    2
#define SIZE_DWORD    4
#define SIZE_QWORD    8
#define SIZE_LINT    8
#define SIZE_INT64    8
#define SIZE_UUID    16


/*============================================================================*/
#endif    /*UNISTD_H__*/

好了。是不是很简单啊。适合初学者学习,适合喜欢简单就是生活的人!

上一页  1 2 3 

Tags:语言 实现 一个

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接