ChrisB: Formatierungen programmieren

Beitrag lesen

Hi,

Für Zahlen könnte ich print(f) verwenden, wie mache ich es aber bei Text mit bool, bzw. Text mit Zahl (1=1. Text, 2=2.Text, usw)

Du kannst auch Funktionsaufrufe bzw. deren Rückgabewert als Parameter für [s]printf verwenden.

MfG ChrisB

--
The most exciting phrase to hear in science, the one that heralds new discoveries, is not “Eureka!” but “That's funny...” [Isaac Asimov]