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

Comparing Represent/represent.cpp (file contents):
Revision 362 by douglas, 2004-12-21T01:12:18-08:00 vs.
Revision 363 by douglas, 2004-12-21T01:15:40-08:00

# Line 10 | Line 10
10  
11   #include <foreach.hpp>
12  
13 /*template <typename Type>
14 std::string binary(const Type& type)
15 {
16        std::ostringstream string;
17
18        _rforu (index, 0, 8 * sizeof (type))
19        {
20                bool bit(1 & type >> index);
21
22                string << bit;
23        }
24
25        return string.str();
26 }*/
27
13   class Binary
14   {
15   private:
# Line 83 | Line 68 | int main(int argc, char* argv[])
68                  std::cout << Binary(index) << " = " << index << std::endl;
69          }
70  
71 <        _foru (index, -10, 11)
71 >        _foru (index, 4294967286, 11)
72          {
73                  std::cout << Binary(index) << " = " << index << std::endl;
74          }

Comparing Represent/represent.cpp (property svn:keywords):
Revision 362 by douglas, 2004-12-21T01:12:18-08:00 vs.
Revision 363 by douglas, 2004-12-21T01:15:40-08:00

# Line 0 | Line 1
1 + Id

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines