|
From: | Cristiano Fontana |
Subject: | Re: [Swarm-Support] what does '?' operator mean |
Date: | Sat, 2 Oct 2010 15:53:54 +0200 |
Hello, it is the C ``ternary operator'': http://en.wikipedia.org/wiki/%3F: It is equivalent as: if ( type == cold ) { hereIsBetter = (headHere < bestHeat) } else { hereIsBetter = (heatHere > bestHeat) } Cristiano Il giorno 02/ott/2010, alle ore 13.06, mohammed tayebi ha scritto:
|
[Prev in Thread] | Current Thread | [Next in Thread] |