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 373 by douglas, 2004-12-22T17:27:28-08:00 vs.
Revision 374 by douglas, 2004-12-22T17:51:12-08:00

# Line 17 | Line 17 | int Main(const app::Options& options)
17  
18   Represent::Represent()
19   {
20        api::Cerr << Binary("Hello, World!") << " = " << Hexadecimal("Hello, World") << " = Hello, World!" << ios::NewLine;
21
20          std::string hello("Hello, World!");
21  
22          api::Cerr << Binary(hello) << " = " << Hexadecimal(hello) << " = " << ext::String(hello) << ios::NewLine;
# Line 35 | Line 33 | Represent::Represent()
33  
34          _foru (index, 0xFFFFFFF6, 11) api::Cerr << Binary(index) << " = " << Hexadecimal(index) << " = " << index << ios::NewLine;
35  
36 <        for (float index(-1); index < 1.1; index += 0.1) api::Cerr << Binary(index) << " = " << Hexadecimal(index) << " = " << index << ios::NewLine;
36 >        for (float index(-1); index < 1.1; index += float(0.1)) api::Cerr << Binary(index) << " = " << Hexadecimal(index) << " = " << index << ios::NewLine;
37  
38          for (double index(-1); index < 1.1; index += 0.1) api::Cerr << Binary(index) << " = " << Hexadecimal(index) << " = " << index << ios::NewLine;
39   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines