| 1 |
/* |
| 2 |
* Stops the execution of a code, until the 'Enter' case is hit. |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
/* |
| 7 |
* Copyright (c) 1999-2001 Eric Gourgoulhon |
| 8 |
* |
| 9 |
* This file is part of LORENE. |
| 10 |
* |
| 11 |
* LORENE is free software; you can redistribute it and/or modify |
| 12 |
* it under the terms of the GNU General Public License as published by |
| 13 |
* the Free Software Foundation; either version 2 of the License, or |
| 14 |
* (at your option) any later version. |
| 15 |
* |
| 16 |
* LORENE is distributed in the hope that it will be useful, |
| 17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 |
* GNU General Public License for more details. |
| 20 |
* |
| 21 |
* You should have received a copy of the GNU General Public License |
| 22 |
* along with LORENE; if not, write to the Free Software |
| 23 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 24 |
* |
| 25 |
*/ |
| 26 |
|
| 27 |
|
| 28 |
char arrete_C[] = "$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Utilities/arrete.C,v 1.3 2014/10/13 08:53:31 j_novak Exp $" ; |
| 29 |
|
| 30 |
|
| 31 |
/* |
| 32 |
* $Id: arrete.C,v 1.3 2014/10/13 08:53:31 j_novak Exp $ |
| 33 |
* $Log: arrete.C,v $ |
| 34 |
* Revision 1.3 2014/10/13 08:53:31 j_novak |
| 35 |
* Lorene classes and functions now belong to the namespace Lorene. |
| 36 |
* |
| 37 |
* Revision 1.2 2002/10/16 14:37:12 j_novak |
| 38 |
* Reorganization of #include instructions of standard C++, in order to |
| 39 |
* use experimental version 3 of gcc. |
| 40 |
* |
| 41 |
* Revision 1.1.1.1 2001/11/20 15:19:29 e_gourgoulhon |
| 42 |
* LORENE |
| 43 |
* |
| 44 |
* Revision 2.1 1999/12/15 15:40:50 eric |
| 45 |
* L'argument par defaut a=0 est desormais precise dans le prototypage |
| 46 |
* declare dans utilitaires.h |
| 47 |
* |
| 48 |
* Revision 2.0 1999/03/02 14:04:18 eric |
| 49 |
* *** empty log message *** |
| 50 |
* |
| 51 |
* |
| 52 |
* $Header: /cvsroot/Lorene/C++/Source/Non_class_members/Utilities/arrete.C,v 1.3 2014/10/13 08:53:31 j_novak Exp $ |
| 53 |
* |
| 54 |
*/ |
| 55 |
|
| 56 |
|
| 57 |
// headers du C++ |
| 58 |
#include"headcpp.h" |
| 59 |
|
| 60 |
namespace Lorene { |
| 61 |
void arrete(int a) { |
| 62 |
char c ; |
| 63 |
|
| 64 |
if (a == 0) { |
| 65 |
|
| 66 |
cout.flush() ; |
| 67 |
cout << "Continue = 'return'" << endl ; |
| 68 |
cin.get(c) ; |
| 69 |
|
| 70 |
} |
| 71 |
|
| 72 |
} |
| 73 |
} |