ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Represent/Represent.cpp
(Generate patch)

Comparing Represent/represent.cpp (file contents):
Revision 366 by douglas, 2004-12-21T03:22:38-08:00 vs.
Revision 367 by douglas, 2004-12-21T03:24:26-08:00

# Line 78 | Line 78 | int main(int argc, char* argv[])
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines