00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _XCPLUSPLUS_H
00013 #define _XCPLUSPLUS_H
00014
00015 #include <fstream>
00016 #include <iostream>
00017
00018
00019 inline void skip_line(istream& is)
00020 {
00021 char next;
00022 while( is >> noskipws >> next && next != '\n' );
00023 }
00024
00025
00026 inline bool skip_comment_lines(istream& is, char comment_tag)
00027 {
00028 char next;
00029 while( is >> skipws >> next )
00030 {
00031 is.putback(next);
00032 if(next == comment_tag) skip_line(is);
00033 else
00034 return true;
00035 }
00036 return false;
00037 }
00038
00039
00040
00041
00042 const double pi = 3.1416;
00043
00044
00045 #endif