1 |
// Represent |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#include "Hexadecimal.hpp" |
8 |
|
9 |
#include <menes-app/simple.hpp> |
10 |
|
11 |
int Main(const app::Options& options) |
12 |
{ |
13 |
Represent represent; |
14 |
|
15 |
return 0; |
16 |
} |
17 |
|
18 |
Represent::Represent() |
19 |
{ |
20 |
ext::String string("1001"); |
21 |
Binary sign(string, true), unsign(string, false); |
22 |
|
23 |
api::Cerr << string << ios::NewLine << ext::String(sign) << ios::NewLine << ext::String(unsign) << ios::NewLine; |
24 |
|
25 |
string = "deadbeef"; |
26 |
|
27 |
Hexadecimal test(string, false); |
28 |
|
29 |
api::Cerr << string << ios::NewLine << ext::String(test) << ios::NewLine; |
30 |
|
31 |
Hexadecimal sign_(sign), unsign_(unsign); |
32 |
|
33 |
api::Cerr << ext::String(sign_) << ios::NewLine << ext::String(unsign_) << ios::NewLine; |
34 |
} |