In c ++ is it possible to execute expressions within a variable?
Ex (in Moon):
n = math.random(9, 10)
a = n .. (#tostring(n) > 9 and "-" or "--")
print(a)
If n were equal to 9 would return:
9--
If not, I would return
10-
In c +...
asked on
21.12.2014 / 08:14