Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef ROMAN_INT_H_INCLUDED
- #define ROMAN_INT_H_INCLUDED
- //------------------------------------------------------------------------------
- #include <iostream>
- #include <string>
- #include <vector>
- #include <fstream>
- #include <sstream>
- #include <cstdlib>
- #include <exception>
- //------------------------------------------------------------------------------
- using namespace std;
- //------------------------------------------------------------------------------
- void error_throw(string s1, string s2, double d);
- //------------------------------------------------------------------------------
- int input_stop(istream& is);
- //------------------------------------------------------------------------------
- const int no_int = -123456789123456789123456789;
- const string no_string = "error_string_key_word";
- const int not_a_number = -77777;
- const string not_a_roman = "1337";
- const int roman_max = 3999;
- const int roman_min = 1;
- //------------------------------------------------------------------------------
- struct Roman_int {
- Roman_int(string r, int arabic);
- Roman_int();
- int as_int() const { return arabic; }
- string roman;
- int arabic;
- };
- //------------------------------------------------------------------------------
- void init_vectors();
- //------------------------------------------------------------------------------
- int get_1s(istream& is);
- //------------------------------------------------------------------------------
- int get_10s(istream& is);
- //------------------------------------------------------------------------------
- int get_100s(istream& is);
- //------------------------------------------------------------------------------
- int get_1000s(istream& is);
- //------------------------------------------------------------------------------
- istream& operator>>(istream& is, Roman_int& rm);
- //------------------------------------------------------------------------------
- ostream& operator<<(ostream& is, Roman_int& rm);
- //------------------------------------------------------------------------------
- #endif // ROMAN_INT_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement