How can one write a program that will display its boolean value as true wen compiled? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How can one write a program that will display its boolean value as true wen compiled?

27th Jul 2016, 12:44 AM
Leo Smile
Leo Smile - avatar
1 Antwort
0
You could do something like this: static void main(){ bool myCondition = true; cout<<myCondition; }
28th Jul 2016, 8:41 PM
Matt Ferrie
Matt Ferrie - avatar