About the Registry
Using the Registry
Type: Posts; User: Talliesin
About the Registry
Using the Registry
Cool. You mind if I append it to the article on HackCraft?
If so how you you like to be referred to as, "Codeplug?" or another name, or what?
Strousup doesn't seem to be 100% convinced himself. However he makes a good case for the use of a operator rather than a member function, and for it being << and >> rather than any other possible...
C# get/set or COM get/set?
If the machine is networked then it'll be unique for the next thousand years or so (assuming there are no bugs in the algorithm itself).
It's unique enough, and a pretty neat solution to the problem...
So if you took a large procedural program of about 10,000 lines that had three calls to printf and you replaced those three printf calls with uses of cout you'd call it OOP?
For that matter if...
It uses an algorithm, originally developed by the Open Software Foundation (now absorbed into the Open Group). It uses a combination of your MAC address of the computer or (as a later security...
Gosh, thanks (assuming you meant it in a good way).
Alternatively return an std::vector.
http://www.unicode.org/reports/tr10/ is worth a read if you want to get deep into the details of rolling your own locale-specific comparisons.
Depends on why you are sorting them.
If it's because you need to have an order, but don't care which (so you can later search for them with a binary search) then lexicographical_compare or strcmp...
std::swap?
Yes, but it's not very OO to just make use of cout.
cout is also template-based, but you wouldn't know it from just looking at the code example above.
There are degrees of how OO something is....
Nope, VB can do everything except COM without classes, or it can use classes extensively. Essentially the same choice as you have with C++ (except C++ does classes better).
%10.2f is essentially...
If anyone sends me such I'll add it to the article as an appendix, giving due credit of course.