samedi 28 mars 2015

What's the equivalent if/else statement for this multiply nested ternary expression?

I'm refactoring a chunk of code in Notepad++, and came across this in parameters.cpp


Someone got really carried away with the ternary operator


What is the equivalent series of if/else statements?


Aucun commentaire:

Enregistrer un commentaire