78 |
|
{ |
79 |
|
std::string hello("Hello, World!"); |
80 |
|
|
81 |
< |
_foreach (std::string, atom, hello) |
82 |
< |
{ |
83 |
< |
std::cout << Binary(*atom) << " = " << *atom << std::endl; |
84 |
< |
} |
85 |
< |
|
86 |
< |
_fori (index, -10, 11) |
87 |
< |
{ |
88 |
< |
std::cout << Binary(index) << " = " << index << std::endl; |
89 |
< |
} |
90 |
< |
|
91 |
< |
_foru (index, -10, 11) |
92 |
< |
{ |
93 |
< |
std::cout << Binary(index) << " = " << index << std::endl; |
94 |
< |
} |
95 |
< |
|
96 |
< |
for (float index(-1.0); index < 1.0; index += 0.1) |
97 |
< |
{ |
98 |
< |
std::cout << Binary(index) << " = " << index << std::endl; |
99 |
< |
} |
100 |
< |
|
101 |
< |
for (double index(-1.0); index < 1.0; index += 0.1) |
102 |
< |
{ |
103 |
< |
std::cout << Binary(index) << " = " << index << std::endl; |
104 |
< |
} |
81 |
> |
_foreach (std::string, atom, hello) std::cout << Binary(*atom) << " = " << *atom << std::endl; |
82 |
> |
|
83 |
> |
_fori (index, -10, 11) std::cout << Binary(index) << " = " << index << std::endl; |
84 |
> |
|
85 |
> |
_foru (index, -10, 11) std::cout << Binary(index) << " = " << index << std::endl; |
86 |
> |
|
87 |
> |
for (float index(-1.0); index < 1.0; index += 0.1) std::cout << Binary(index) << " = " << index << std::endl; |
88 |
> |
|
89 |
> |
for (double index(-1.0); index < 1.0; index += 0.1) std::cout << Binary(index) << " = " << index << std::endl; |
90 |
|
|
91 |
|
std::string string("101001101001"); |
92 |
|
Binary binary(string, true); |