error.h

来自「经网络提出了一种基于蚁群聚类算法的径向基神经网络. 利用蚁群算法的并行寻优特征和」· C头文件 代码 · 共 36 行

H
36
字号
/* $Id: error.h,v 1.1 2006-08-09 15:20:54 jonathan Exp $* Jonathan Ledlie, Harvard University.* Copyright 2005.  All rights reserved.*/#ifndef ERROR_H#define ERROR_H#include <stdio.h>#include <stdlib.h>// Comment out to remove all debugging paths#define DEBUG 1#ifdef DEBUGextern bool debug;#define DEBUG_P(c) if (debug) printf c;#define IF_DEBUG(c)   if (debug) c;#else#define DEBUG_P(c) #define IF_DEBUG(c)#endif#define ASSERT(c) { \	if (!(c)) { \	fprintf (stderr, \	"ASSERTION FAILURE: %s:%d\n", __FILE__, __LINE__); \	fprintf (stderr, "\tfailed condition: %s\n", #c); \	exit (-1); \	} \}//#define ASSERT(c) #endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?