00001 /* 00002 * Stops the execution of a code, until the 'Enter' case is hit. 00003 * 00004 */ 00005 00006 /* 00007 * Copyright (c) 1999-2001 Eric Gourgoulhon 00008 * 00009 * This file is part of LORENE. 00010 * 00011 * LORENE is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * LORENE is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with LORENE; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 * 00025 */ 00026 00027 00028 char arrete_C[] = "$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Utilities/arrete.C,v 1.2 2002/10/16 14:37:12 j_novak Exp $" ; 00029 00030 00031 /* 00032 * $Id: arrete.C,v 1.2 2002/10/16 14:37:12 j_novak Exp $ 00033 * $Log: arrete.C,v $ 00034 * Revision 1.2 2002/10/16 14:37:12 j_novak 00035 * Reorganization of #include instructions of standard C++, in order to 00036 * use experimental version 3 of gcc. 00037 * 00038 * Revision 1.1.1.1 2001/11/20 15:19:29 e_gourgoulhon 00039 * LORENE 00040 * 00041 * Revision 2.1 1999/12/15 15:40:50 eric 00042 * L'argument par defaut a=0 est desormais precise dans le prototypage 00043 * declare dans utilitaires.h 00044 * 00045 * Revision 2.0 1999/03/02 14:04:18 eric 00046 * *** empty log message *** 00047 * 00048 * 00049 * $Header: /cvsroot/Lorene/C++/Source/Non_class_members/Utilities/arrete.C,v 1.2 2002/10/16 14:37:12 j_novak Exp $ 00050 * 00051 */ 00052 00053 00054 // headers du C++ 00055 #include"headcpp.h" 00056 00057 void arrete(int a) { 00058 char c ; 00059 00060 if (a == 0) { 00061 00062 cout.flush() ; 00063 cout << "Continue = 'return'" << endl ; 00064 cin.get(c) ; 00065 00066 } 00067 00068 }
1.4.6