mardi 2 août 2016

C++ : How to reduce conditional statements [duplicate]

This question already has an answer here:

I am new to programming and I have to write the code which will print the ASCII value of an input character. Is there any other way to reduce the 52 (26 for lowercase and 26 for upper) if-else statements or 52 switch-cases ?

Aucun commentaire:

Enregistrer un commentaire