exit.cc

来自「GNU CPP 4」· CC 代码 · 共 39 行

CC
39
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?