⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exit.cc

📁 GNU CPP 4
💻 CC
字号:
// exit.cc

//--------------------------------------------------------------------------
// This code is a component of Genetic Programming in C++ (Version 0.40)
// Copyright Adam P. Fraser, 1993,1994
// This code is released for non-commercial use only.
// For comments, improvements, additions (or even money !?) contact:
// Adam Fraser, Postgraduate Section, Dept of Elec & Elec Eng,
// Maxwell Building, University Of Salford, Salford, M5 4WT, United Kingdom.
// Internet: a.fraser@eee.salford.ac.uk
// Tel: (UK) 061 745 5000 x3633
// Fax: (UK) 061 745 5999
//--------------------------------------------------------------------------


// Simply an exit system, which outputs some error and my speel
#include <iostream.h>
#include <stdlib.h>

#ifndef EXIT_FAILURE
#define EXIT_FAILURE 1
#endif

// Function Prototype
void ExitSystem( char * );

// The code

void ExitSystem( char *msg )
{
	cout << msg << endl;

	cout << "Genetic Programming in C++ Kernel (c) Adam P. Fraser 1994" << endl;

	exit(EXIT_FAILURE);
}

// exit.cc

⌨️ 快捷键说明

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