Here is a simple example, what is the output of this program?
```
include
using namespace std;
int main()
{
float f = 0.0;
int i = 5;
f = (float)i;
cout<继续阅读 »
Named namespaces in Google Code Style
Namespaces wrap the entire source file after includes, gflags definitions/declarations and forward declarations of classes from other namespaces.继续阅读 »
QNAN wiki上是这样说的:
A QNaN is a NaN with the most significant fraction bit set. QNaN’s propagate freely through most arithmetic operations. These values pop out of an operation when the result is not mathematically defined. (details)[http://en.wikipedia.org/wiki/NaN]
我尝试过sqrt(-1), 1/0, NAN/NAN都不行
结果:继续阅读 »