<FONT size=2>Hehe, nice work. That code reminds me on an old code by a friend of mine I saw a few years ago. He was trying to convert a character string to an integer value using C++. Instead using nValue = atoi(szChar) he curiously parsed the string himself and calculated the value manually char by char, adding every digit to his int value [:S]
I "optimized" the code in around 0.5 seconds. Yeah, this moment was awesome! [H]</FONT>
Cpp_Junky
@Cpp_Junky
Best posts made by Cpp_Junky
Latest posts made by Cpp_Junky
-
RE: Biggest bottleneck fix in human history
-
RE: Huh?
<FONT size=3>Don't care about that. There are hundreds of thousands of jerks like that out there. Most of them will all fail at some point, the rest will become a managers position on something like that [:P]</FONT>
-
RE: Not all your font are belong to you
<FONT color=#000000>Maybe you got enough time and want to search the registry for keywords like "tahoma".
Or try google. There are tools around to change settings like that.</FONT> -
RE: Best error message ever
Few days ago, during the installation of a hardware driver I got an access violation error. I pushed the
message box away and a new one appeared showing the funny y/n message dialog:
"Good bye! [yes] [no]"
(btw: the [no] button didn't make things better [8-)] ) -
RE: If Not Else
In C++ I like it this way:
[code]
if (bCondition)
{
// some incredible hyperoptimized stuff
}
else
{
// foo
}
[/code]
...because it simply reads how it works.