Go to the documentation of this file.00001 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00002 #pragma implementation
00003 #endif
00004
00005
00006
00007
00008
00009 #include "mbl_read_yes.h"
00010 #include <vcl_iostream.h>
00011 #include <vcl_cstdio.h>
00012
00013 bool mbl_read_yes()
00014 {
00015 vcl_cout<<" (N) ";
00016 vcl_cout.flush();
00017
00018
00019
00020
00021
00022
00023 int c;
00024 bool r = false;
00025 while ((c=vcl_getchar())!='\n') {
00026 if (c=='y' || c=='Y')
00027 r = true;
00028 }
00029 return r;
00030 }
00031
00032 bool mbl_read_no()
00033 {
00034 vcl_cout<<" (Y) ";
00035 vcl_cout.flush();
00036 int c;
00037 bool r = false;
00038 while ((c=vcl_getchar())!='\n') {
00039 if (c=='n' || c=='N')
00040 r = true;
00041 }
00042 return r;
00043 }