读书人

大家来帮小弟我看看这个程序吧!

发布时间: 2012-02-23 22:01:35 作者: rapoo

大家来帮我看看这个程序吧!!!!
//////////////////////////////////////////////////////////////////////////
/*
Provided by 王俊川, Northeastern University (www.neu.edu.cn)
Email: blackdrn@sohu.com
This product is free for use.
*/
//////////////////////////////////////////////////////////////////////////

typedef enum {ENCRYPT,DECRYPT} ;

typedef int BOOL; /* a 32 bit signed integer type */

typedef enum {false,true} ;

#define TRUE 1
#define FALSE 0

//////////////////////////////////////////////////////////////////////////

// 加/解密 Type—ENCRYPT:加密,DECRYPT:解密
void Des_Run(char Out[8], char In[8],char Type=ENCRYPT);
// 设置密钥
void Des_SetKey(const char Key[8]);

//////////////////////////////////////////////////////////////////////////

In file included from WjcDes.c:10:
WjcDes.h:9: 警告:空声明中指定存储类无用
WjcDes.h:13: 警告:空声明中指定存储类无用
WjcDes.h:21: 错误:expected ‘;’, ‘,’ or ‘)’ before ‘=’ token

新手不懂,请大家看看


[解决办法]
C没有默认参数

读书人网 >UNIXLINUX

热点推荐